Skip to content

Commit 50e4eb3

Browse files
committed
Fixed pytest CI.
1 parent c7a48fa commit 50e4eb3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
- uses: actions/setup-python@v6
6161
with:
6262
python-version: 3.x
63+
- name: Install uv
64+
uses: astral-sh/setup-uv@v7
6365
- id: prepare-container
6466
name: Prepare docker container
6567
run: docker compose up -d --wait
@@ -69,7 +71,10 @@ jobs:
6971
- name: Build lib
7072
uses: PyO3/maturin-action@v1
7173
with:
72-
command: dev
74+
command: dev --uv
7375
sccache: true
7476
- name: Run pytest
75-
run: uv run pytest -vv -n auto python/tests
77+
run: |
78+
set -e
79+
source .venv/bin/activate
80+
pytest -vv -n auto python/tests

0 commit comments

Comments
 (0)