@@ -2,15 +2,14 @@ name: Test
2
2
3
3
on :
4
4
push :
5
- branches : [main,tests-build,v*]
5
+ branches : [main, tests-build, v*]
6
6
pull_request :
7
- branches : [main,v*]
7
+ branches : [main, v*]
8
8
9
9
concurrency :
10
10
group : ${{ github.ref }}
11
11
cancel-in-progress : true
12
12
13
-
14
13
jobs :
15
14
test :
16
15
name : ${{ matrix.os }} - ${{ matrix.python-version }}
19
18
fail-fast : false
20
19
matrix :
21
20
os : [ubuntu-latest, macos-latest]
22
- python-version : [' 3.9', ' 3.10', ' 3.11', ' 3.12', ' 3.13' ]
21
+ python-version : [" 3.9", " 3.10", " 3.11", " 3.12", " 3.13" ]
23
22
steps :
24
23
- uses : actions/checkout@v3
25
24
- name : Set up Python ${{ matrix.python-version }}
@@ -65,78 +64,50 @@ jobs:
65
64
path : .pytest_temp/
66
65
67
66
msvc :
68
- name : ${{matrix.os}} - ${{matrix.python-version}}
67
+ name : ${{matrix.os}} - ${{matrix.python-version}} - ${{matrix.architecture}}
69
68
runs-on : ${{matrix.os}}
70
69
strategy :
71
70
fail-fast : false
72
71
matrix :
73
72
os : [windows-2022]
74
- python-version : ['3.8', '3.9', '3.10', '3.11', '3.12']
73
+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
74
+ architecture : ["x64", "x86"]
75
75
steps :
76
76
- uses : actions/checkout@v3
77
- - name : Set up Python ${{ matrix.python-version }} for x64
77
+ - name : Set up Python ${{ matrix.python-version }} for ${{matrix.architecture}}
78
78
uses : actions/setup-python@v4
79
79
with :
80
80
python-version : ${{ matrix.python-version }}
81
- architecture : " x64 "
81
+ architecture : ${{matrix.architecture}}
82
82
allow-prereleases : true
83
83
- name : Cache Windows
84
84
id : cache-windows
85
85
uses : actions/cache@v3
86
86
with :
87
87
path : C:\cibw\pkg-config
88
- key : ${{ hashFiles('packing/download_dlls.py') }}-${{ hashFiles('packing/build_pkgconfig.ps1') }}-1
88
+ key : ${{ hashFiles('packing/download_dlls.py') }}-${{ hashFiles('packing/build_pkgconfig.ps1') }}
89
89
- name : Download Binary
90
90
run : |
91
91
python packing/download_dlls.py
92
- - name : Set Path
92
+ - name : Set Path for pkg-config
93
93
run : |
94
94
$env:Path = "C:\cibw\pkg-config\bin;C:\cibw\vendor\bin;$($env:PATH)"
95
95
echo "$env:Path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
96
- - name : Test x64
96
+ - name : Install Python Dependencies
97
97
run : |
98
98
python -m pip install -U pip
99
99
pip install -U setuptools wheel
100
- $env:PKG_CONFIG_PATH="C:\cibw\vendor\lib\pkgconfig"
101
- pip install -r requirements-dev.txt
102
- python setup.py build_ext -i
103
- pytest
104
- - name : Coverage
105
- run : |
106
- coverage report
107
- coverage html
108
- coverage xml
109
- - name : Set up Python ${{ matrix.python-version }} for x86
110
- uses : actions/setup-python@v4
111
- with :
112
- python-version : ${{ matrix.python-version }}
113
- architecture : " x86"
114
- allow-prereleases : true
115
- - name : Download Binary
116
- run : |
117
- python packing/download_dlls.py
118
- - name : Build x86 Build
119
- run : |
120
- python -m pip install -U pip
121
- $env:PATH="$env:PATH;C:\cibw\vendor\pkg-config\bin;C:\cibw\vendor\bin"
122
- $env:PKG_CONFIG_PATH="C:\cibw\vendor\lib\pkgconfig"
123
100
pip install -r requirements-dev.txt
124
- python setup.py build_ext -i
125
- python setup.py sdist
126
- python -m pip install dist/*
127
- $env:PATH="C:\cibw\vendor\bin;$env:PATH"
128
- pytest
129
- - name : Coverage
101
+ - name : Build Project
102
+ env :
103
+ PKG_CONFIG_PATH : C:\cibw\vendor\lib\pkgconfig
104
+ run : python setup.py build_ext -i
105
+ - name : Run tests
130
106
run : |
131
- coverage report
132
- coverage html
133
- coverage xml
134
- - uses : codecov/codecov-action@v3
135
- with :
136
- file : ./.coverage/coverage.xml
107
+ pytest -s
137
108
- uses : actions/upload-artifact@v3
138
109
with :
139
- name : test-artifacts-${{matrix.os}}-${{matrix.python-version}}
110
+ name : test-artifacts-${{matrix.os}}-${{matrix.python-version}} ${{matrix.architecture}}
140
111
path : .pytest_temp/
141
112
success-win :
142
113
needs : [msvc]
0 commit comments