Skip to content

Commit 3737341

Browse files
committed
Use uv in Github Actions
1 parent 426b664 commit 3737341

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@ on:
77

88
jobs:
99
python-test:
10+
name: python
1011
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version:
15+
- "3.10"
16+
- "3.11"
17+
- "3.12"
18+
- "3.13"
1119
steps:
12-
- name: Checkout Source
13-
uses: actions/checkout@v4
14-
- name: Set up Python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: 3.13
18-
- name: Install Dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install .
22-
pip install .[dev]
23-
- name: Run Tests
24-
run: |
25-
pip install pytest pytest-cov
26-
pytest
20+
- uses: actions/checkout@v5
21+
- name: Install uv and set the Python version
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install the project
26+
run: uv sync --locked --all-extras --dev
27+
- name: Run tests
28+
run: uv run pytest

0 commit comments

Comments
 (0)