Skip to content

Commit ccd2997

Browse files
committed
chore: use uv in CI
1 parent 6491336 commit ccd2997

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444

4545
steps:
4646
- uses: actions/checkout@v4
47+
- uses: astral-sh/setup-uv@v4
4748
- name: "Set up Python ${{ matrix.python-version }}"
4849
uses: actions/setup-python@v5
4950
with:
@@ -53,16 +54,17 @@ jobs:
5354
run: sudo apt-get install valgrind -y
5455
- name: Install dependencies with pytest${{ matrix.pytest-version }}
5556
run: |
56-
pip install .[dev,compat,build] "pytest${{ matrix.pytest-version }}"
57-
pip uninstall -y pytest-benchmark
57+
uv sync --all-extras --dev --locked
58+
uv pip install "pytest${{ matrix.pytest-version }}"
59+
uv pip uninstall -y pytest-benchmark
5860
- if: matrix.config == 'pytest-benchmark-4'
5961
name: Install pytest-benchmark 4.0.0
60-
run: pip install pytest-benchmark~=4.0.0
62+
run: uv pip install pytest-benchmark~=4.0.0
6163
- if: matrix.config == 'pytest-benchmark-5'
6264
name: Install pytest-benchmark 5.0.0
63-
run: pip install pytest-benchmark~=5.0.0
65+
run: uv pip install pytest-benchmark~=5.0.0
6466
- name: Run tests
65-
run: pytest -vs
67+
run: uv run --no-sync pytest -vs
6668

6769
all-checks:
6870
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)