Skip to content

Commit cdb244b

Browse files
committed
Run tests on CI
1 parent 99598dc commit cdb244b

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: # all pull requests
8+
9+
jobs:
10+
pytest:
11+
name: Python ${{ matrix.python-version }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version:
16+
- "3.8"
17+
- "3.9"
18+
- "3.10"
19+
- "3.11"
20+
- "3.12"
21+
- "3.13"
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v5
25+
26+
- name: Install uv with Python ${{ matrix.python-version }}
27+
uses: astral-sh/setup-uv@v6
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install the project
32+
run: uv sync --locked --all-extras --dev
33+
- name: Run tests (with coverage)
34+
35+
run: |
36+
uv run coverage run -m pytest
37+
uv run coverage report -m

0 commit comments

Comments
 (0)