Skip to content

Commit d77e17c

Browse files
committed
CI: use uv (to verify lock file), use preinstalled Python
1 parent 67ecbb6 commit d77e17c

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Run Tests
22
on: [push, pull_request]
33
env:
4+
UV_PYTHON_DOWNLOADS: never
45
PYTEST_ADDOPTS: "--color=yes"
56
jobs:
67
tests:
@@ -41,34 +42,26 @@ jobs:
4142
shell: bash
4243
run: |
4344
jackd --no-realtime -d dummy &
44-
- name: Set up Python
45-
uses: actions/setup-python@v5
46-
with:
47-
python-version: "3"
48-
- name: Double-check Python version
49-
run: |
50-
python --version
45+
5146
- uses: actions/checkout@v5
47+
- name: Install uv
48+
uses: astral-sh/setup-uv@v6
5249
- name: Install Python package
5350
run: |
54-
python -m pip install --group test .
51+
uv sync --locked
5552
- name: Run tests
5653
run: |
57-
python -m pytest
54+
uv run pytest
5855
5956
docs:
6057
runs-on: ubuntu-latest
6158
steps:
62-
- name: Set up Python
63-
uses: actions/setup-python@v5
59+
- uses: actions/checkout@v5
6460
with:
65-
python-version: "3"
61+
fetch-depth: 0
6662
- name: Double-check Python version
6763
run: |
6864
python --version
69-
- uses: actions/checkout@v5
70-
with:
71-
fetch-depth: 0
7265
- name: Install doc dependencies
7366
run: |
7467
python -m pip install --group doc

0 commit comments

Comments
 (0)