Skip to content

Commit 2f7ed60

Browse files
committed
Add OS and Python matrix to CI
1 parent ce482d1 commit 2f7ed60

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ on:
77

88
jobs:
99
test:
10-
runs-on: ubuntu-latest
10+
name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }})
11+
12+
runs-on: ${{ matrix.os }}
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
python-version: ["3.12", "3.13"]
1119

1220
steps:
1321
- name: Checkout repository
@@ -19,13 +27,13 @@ jobs:
1927
enable-cache: true
2028

2129
- name: Install Python
22-
run: uv python install 3.12
30+
run: uv python install ${{ matrix.python-version }}
2331

2432
- name: Install dependencies
25-
run: uv sync --locked --python 3.12
33+
run: uv sync --locked --python ${{ matrix.python-version }}
2634

2735
- name: Run tests
28-
run: uv run --locked pytest -v
36+
run: uv run --locked --python ${{ matrix.python-version }} pytest -v
2937

3038
- name: Build package
3139
run: uv build

0 commit comments

Comments
 (0)