Skip to content

Commit 26cb2d8

Browse files
committed
uv isntead of raw python
1 parent 87c141f commit 26cb2d8

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
- uses: astral-sh/setup-uv@v6
1415
- uses: actions/cache@v4
1516
with:
1617
path: |
@@ -94,8 +95,9 @@ jobs:
9495
- uses: actions-rs/toolchain@v1
9596
with:
9697
toolchain: stable
98+
- uses: astral-sh/setup-uv@v6
9799
- run: cargo build --examples --verbose
98-
- run: make test python=/usr/local/opt/python@3/libexec/bin/python
100+
- run: make test
99101
- name: Upload artifacts
100102
uses: actions/upload-artifact@v4
101103
with:
@@ -122,6 +124,7 @@ jobs:
122124
- uses: actions-rs/toolchain@v1
123125
with:
124126
toolchain: stable
127+
- uses: astral-sh/setup-uv@v6
125128
- run: cargo build --examples --verbose
126129
- run: make test
127130
- name: Upload artifacts

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
2-
ifdef python
3-
PYTHON=$(python)
4-
else
5-
PYTHON=python3
6-
endif
7-
81
test:
92
cargo test
103
cargo test --features=exec
114
cargo test --features=static
125
cargo build --examples --features=
13-
$(PYTHON) examples/test-examples.py
6+
uv run python examples/test-examples.py

0 commit comments

Comments
 (0)