Skip to content

Commit a98510d

Browse files
committed
Test on windows
1 parent fcbf487 commit a98510d

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
test-windows:
3535
name: Test Windows
3636
runs-on: windows-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
3741
steps:
3842
- name: Checkout
3943
uses: actions/checkout@v4.2.2
@@ -45,7 +49,7 @@ jobs:
4549
- name: Set up Python
4650
uses: actions/setup-python@v5
4751
with:
48-
python-version: '3.11'
52+
python-version: ${{ matrix.python-version }}
4953

5054
- name: Set version statically
5155
shell: powershell
@@ -58,12 +62,41 @@ jobs:
5862
- name: Install dependencies
5963
run: |
6064
python -m pip install --upgrade pip
65+
66+
- name: Install Python 3.8 dependencies
67+
if: matrix.python-version == '3.8'
68+
run: |
69+
pip install atomicwrites==1.4.1 attrs==20.3.0 more-itertools==10.5.0 pluggy==0.13.1 py==1.11.0 pytest==4.5.0 PyYAML==5.1 six==1.16.0 wcwidth==0.2.13
70+
71+
- name: Install Python 3.9 dependencies
72+
if: matrix.python-version == '3.9'
73+
run: |
74+
pip install exceptiongroup==1.2.2 iniconfig==2.0.0 packaging==24.1 pluggy==1.5.0 pytest==8.3.3 PyYAML==6.0.2 tomli==2.0.1
75+
76+
- name: Install Python 3.10 dependencies
77+
if: matrix.python-version == '3.10'
78+
run: |
79+
pip install attrs==24.2.0 iniconfig==2.0.0 packaging==24.1 pluggy==0.13.1 py==1.11.0 pyperf==2.2.0 pytest==6.2.4 PyYAML==5.4.1 toml==0.10.2
80+
81+
- name: Install Python 3.11 dependencies
82+
if: matrix.python-version == '3.11'
83+
run: |
6184
pip install attrs==24.2.0 iniconfig==2.0.0 packaging==24.1 pluggy==1.5.0 py==1.11.0 pyperf==2.4.1 pytest==7.1.2 PyYAML==6.0 tomli==2.0.1
6285
86+
- name: Install Python 3.12 dependencies
87+
if: matrix.python-version == '3.12'
88+
run: |
89+
pip install iniconfig==2.0.0 packaging==24.1 pip==24.2 pluggy==1.5.0 psutil==6.0.0 pyperf==2.6.1 pytest==7.4.2 PyYAML==6.0.1
90+
91+
- name: Install Python 3.13 dependencies
92+
if: matrix.python-version == '3.13'
93+
run: |
94+
pip install iniconfig==2.0.0 packaging==24.1 pip==24.2 pluggy==1.5.0 psutil==6.0.0 pyperf==2.7.0 pytest==8.3.3 PyYAML==6.0.2
95+
6396
- name: Install package
6497
run: |
6598
pip install .
6699
67100
- name: Run tests
68101
run: |
69-
pytest test/ --junitxml=junit-python311.xml --maxfail=1 --verbose
102+
pytest test/ --junitxml=junit-python${{ matrix.python-version }}.xml --maxfail=1 --verbose

0 commit comments

Comments
 (0)