Skip to content

Commit 2334df9

Browse files
committed
Test on windows
1 parent a98510d commit 2334df9

2 files changed

Lines changed: 84 additions & 36 deletions

File tree

.github/workflows/test.yaml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -59,44 +59,11 @@ jobs:
5959
$content = $content -replace "use_scm_version=.*", ""
6060
Set-Content setup.py $content
6161
62-
- name: Install dependencies
62+
- name: Install tox
6363
run: |
6464
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: |
84-
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
85-
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-
96-
- name: Install package
97-
run: |
98-
pip install .
65+
pip install tox
9966
10067
- name: Run tests
10168
run: |
102-
pytest test/ --junitxml=junit-python${{ matrix.python-version }}.xml --maxfail=1 --verbose
69+
tox -c tox-windows.ini -r -e ${{ matrix.python-version }}

tox-windows.ini

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[tox]
2+
envlist = 3.8,3.9,3.10,3.11,3.12,3.13
3+
4+
[testenv]
5+
commands =
6+
pytest {posargs:test} --junitxml=junit-python{envname}.xml --maxfail=1 --verbose
7+
8+
[testenv:3.8]
9+
basepython = python3.8
10+
deps =
11+
atomicwrites==1.4.1
12+
attrs==20.3.0
13+
more-itertools==10.5.0
14+
pluggy==0.13.1
15+
py==1.11.0
16+
pytest==4.5.0
17+
PyYAML==5.1
18+
sh==1.12.14
19+
six==1.16.0
20+
wcwidth==0.2.13
21+
22+
[testenv:3.9]
23+
basepython = python3.9
24+
deps =
25+
exceptiongroup==1.2.2
26+
iniconfig==2.0.0
27+
packaging==24.1
28+
pluggy==1.5.0
29+
pytest==8.3.3
30+
PyYAML==6.0.2
31+
tomli==2.0.1
32+
33+
[testenv:3.10]
34+
basepython = python3.10
35+
setenv =
36+
PIP_CONSTRAINT={toxinidir}/tox/pyyaml-5.4.1-constraints.txt
37+
deps =
38+
attrs==24.2.0
39+
iniconfig==2.0.0
40+
packaging==24.1
41+
pluggy==0.13.1
42+
py==1.11.0
43+
pyperf==2.2.0
44+
pytest==6.2.4
45+
PyYAML==5.4.1
46+
toml==0.10.2
47+
48+
[testenv:3.11]
49+
basepython = python3.11
50+
deps =
51+
attrs==24.2.0
52+
iniconfig==2.0.0
53+
packaging==24.1
54+
pluggy==1.5.0
55+
py==1.11.0
56+
pyperf==2.4.1
57+
pytest==7.1.2
58+
PyYAML==6.0
59+
tomli==2.0.1
60+
61+
[testenv:3.12]
62+
basepython = python3.12
63+
deps =
64+
iniconfig==2.0.0
65+
packaging==24.1
66+
pluggy==1.5.0
67+
psutil==6.0.0
68+
pyperf==2.6.1
69+
pytest==7.4.2
70+
PyYAML==6.0.1
71+
72+
[testenv:3.13]
73+
basepython = python3.13
74+
deps =
75+
iniconfig==2.0.0
76+
packaging==24.1
77+
pluggy==1.5.0
78+
psutil==6.0.0
79+
pyperf==2.7.0
80+
pytest==8.3.3
81+
PyYAML==6.0.2

0 commit comments

Comments
 (0)