Skip to content

Commit 54b92a0

Browse files
danielkivclaude
andcommitted
Speed up CI with uv and parallel test execution
Switch from pip to uv for faster installs and add pytest-xdist to run tests in parallel with -n auto. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ed702e7 commit 54b92a0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
cache: 'pip' # Caches dependencies to speed up subsequent runs
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v4
2426

2527
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install -e ".[dev,full]"
28+
run: uv pip install --system -e ".[dev,full]"
2929

3030
- name: Run tests
3131
run: |
32-
# The -v flag gives verbose output so you can see exactly which test failed
33-
python -m pytest -v
32+
python -m pytest -v -n auto

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ full = [
6666
dev = [
6767
"pytest>=7.4",
6868
"pytest-cov>=4.1",
69+
"pytest-xdist>=3.0",
6970
"ruff>=0.5.0",
7071
]
7172

0 commit comments

Comments
 (0)