Skip to content

Commit 2a5dcf7

Browse files
committed
ci: add macos/win runners
1 parent 91f2743 commit 2a5dcf7

1 file changed

Lines changed: 28 additions & 10 deletions

File tree

.github/workflows/test.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,42 @@ on:
1313
jobs:
1414
tests:
1515
timeout-minutes: 20
16-
name: Test on Python ${{ matrix.python-version }}
17-
runs-on: ubuntu-24.04
16+
name: Test on ${{ matrix.os }} Python ${{ matrix.python-version }}
17+
runs-on: ${{ matrix.os }}
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
21+
# Execute tests on python 3.9-3.14 on ubuntu
22+
# and python 3.14 on macOS and windows
23+
include:
24+
- os: ubuntu-24.04
25+
python-version: "3.9"
26+
- os: ubuntu-24.04
27+
python-version: "3.10"
28+
- os: ubuntu-24.04
29+
python-version: "3.11"
30+
- os: ubuntu-24.04
31+
python-version: "3.12"
32+
- os: ubuntu-24.04
33+
python-version: "3.13"
34+
- os: ubuntu-24.04
35+
python-version: "3.14"
36+
- os: macos-26
37+
python-version: "3.14"
38+
- os: windows-2025
39+
python-version: "3.14"
2240

2341
steps:
2442
- name: Clone repository
25-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
43+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
2644

2745
- name: Set up Python ${{ matrix.python-version }}
2846
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 6.2.0
2947
with:
3048
python-version: ${{ matrix.python-version }}
3149

3250
- name: Install uv
33-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # 8.1.0
51+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0
3452

3553
- name: Set up JDK 26
3654
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 5.2.0
@@ -40,18 +58,18 @@ jobs:
4058

4159
- name: Test with pytest
4260
run: |
43-
make test
61+
uv run --group tests --locked pytest
4462
4563
lint:
4664
timeout-minutes: 10
4765
name: Lint with Ruff
4866
runs-on: ubuntu-24.04
4967
steps:
5068
- name: Clone repository
51-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
69+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
5270

5371
- name: Install uv
54-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # 8.1.0
72+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0
5573

5674
- name: Run Ruff Linter
5775
run: |
@@ -63,10 +81,10 @@ jobs:
6381
runs-on: ubuntu-24.04
6482
steps:
6583
- name: Clone repository
66-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
84+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 6.0.3
6785

6886
- name: Install uv
69-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # 8.1.0
87+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # 8.2.0
7088

7189
- name: Run Mypy Type Checker
7290
run: |

0 commit comments

Comments
 (0)