Skip to content

Commit 3daba2c

Browse files
committed
Add tests
1 parent 6e7ed6b commit 3daba2c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,25 @@ permissions:
1818
contents: read
1919

2020
jobs:
21+
test:
22+
runs-on: ${{matrix.os}}
23+
strategy:
24+
matrix:
25+
os: [ macos-latest, ubuntu-latest, windows-latest ]
26+
version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.version }}
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v5
34+
- name: Run tests
35+
run: uv run pytest
36+
2137
linux:
2238
runs-on: ${{ matrix.platform.runner }}
39+
needs: [ test ]
2340
strategy:
2441
matrix:
2542
platform:
@@ -62,6 +79,7 @@ jobs:
6279

6380
musllinux:
6481
runs-on: ${{ matrix.platform.runner }}
82+
needs: [ test ]
6583
strategy:
6684
matrix:
6785
platform:
@@ -100,6 +118,7 @@ jobs:
100118

101119
windows:
102120
runs-on: ${{ matrix.platform.runner }}
121+
needs: [ test ]
103122
strategy:
104123
matrix:
105124
platform:
@@ -133,6 +152,7 @@ jobs:
133152

134153
macos:
135154
runs-on: ${{ matrix.platform.runner }}
155+
needs: [ test ]
136156
strategy:
137157
matrix:
138158
platform:

0 commit comments

Comments
 (0)