Skip to content

Commit 56f1ede

Browse files
authored
✅ Expand test matrix to include Windows and MacOS (#230)
1 parent 10d531f commit 56f1ede

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,35 @@ env:
2626

2727
jobs:
2828
test:
29-
runs-on: ubuntu-latest
3029
strategy:
3130
matrix:
32-
python-version:
33-
- "3.8"
34-
- "3.9"
35-
- "3.10"
36-
- "3.11"
37-
- "3.12"
38-
- "3.13"
39-
- "3.14"
40-
pydantic-version:
41-
- "v2"
31+
os: [ ubuntu-latest, windows-latest, macos-latest ]
32+
python-version: ["3.14"]
33+
pydantic-version: ["v2"]
4234
include:
4335
- python-version: "3.8"
4436
pydantic-version: "v1"
37+
os: windows-latest
4538
- python-version: "3.9"
46-
pydantic-version: "v1"
39+
pydantic-version: "v2"
40+
os: macos-latest
4741
- python-version: "3.10"
4842
pydantic-version: "v1"
43+
os: ubuntu-latest
44+
- python-version: "3.11"
45+
pydantic-version: "v2"
46+
os: windows-latest
47+
- python-version: "3.12"
48+
pydantic-version: "v1"
49+
os: macos-latest
50+
- python-version: "3.13"
51+
pydantic-version: "v1"
52+
os: ubuntu-latest
53+
- python-version: "3.13"
54+
pydantic-version: "v2"
55+
os: windows-latest
4956
fail-fast: false
57+
runs-on: ${{ matrix.os }}
5058
steps:
5159
- name: Dump GitHub context
5260
env:
@@ -87,7 +95,7 @@ jobs:
8795
- name: Store coverage files
8896
uses: actions/upload-artifact@v5
8997
with:
90-
name: coverage-${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}
98+
name: coverage-${{ runner.os }}-${{ matrix.python-version }}-pydantic-${{ matrix.pydantic-version }}
9199
path: coverage
92100
include-hidden-files: true
93101

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ source = [
8989
"src",
9090
"tests",
9191
]
92+
relative_files = true
9293
context = '${CONTEXT}'
9394
dynamic_context = "test_function"
9495
omit = [

0 commit comments

Comments
 (0)