@@ -90,14 +90,14 @@ jobs:
90
90
path : wheelhouse/${{ runner.os }}/*.whl
91
91
92
92
93
- test-wheels-86_64 :
94
- name : Testing wheels for AMD64
95
- needs : [linux-build, windows-build, osx-build]
93
+ test-wheels-unix- 86_64 :
94
+ name : Testing wheels for AMD64 unix
95
+ needs : [linux-build, osx-build]
96
96
continue-on-error : true
97
97
runs-on : ${{ matrix.os }}
98
98
strategy :
99
99
matrix :
100
- os : [ubuntu-22.04, ubuntu-20.04, macos-14, macos-11, windows-2022, windows-2019 ]
100
+ os : [ubuntu-22.04, ubuntu-20.04, macos-14, macos-11]
101
101
python-version : ["3.9", "3.10", "3.11", "3.12"]
102
102
steps :
103
103
- name : Checkout
@@ -108,33 +108,55 @@ jobs:
108
108
with :
109
109
python-version : ${{ matrix.python-version }}
110
110
111
- - name : Install pytest
112
- run : |
113
- python3 -m pip install --upgrade pip
114
- python3 -m pip install pytest
115
-
116
111
- name : Download artifacts
117
112
uses : actions/download-artifact@v4
118
113
with :
119
114
name : wheels-${{ runner.os }}
120
115
path : wheelhouse
121
116
122
117
- name : Install python-snap7
123
- run : python3 -m pip install $(ls wheelhouse/*.whl)
118
+ run : |
119
+ python3 -m venv venv
120
+ venv/bin/pip install --upgrade pip
121
+ venv/bin/pip install pytest
122
+ venv/bin/pip install $(ls wheelhouse/*.whl)
124
123
125
- - name : Run pytest
124
+ - name : Run tests
126
125
run : |
127
- which pytest
128
- pytest -m "server or util or client or mainloop"
126
+ venv/bin/ pytest -m "server or util or client or mainloop"
127
+ sudo venv/bin/ pytest -m partner
129
128
130
- - name : Run tests required sudo
131
- if : ${{ runner.os == 'Linux'}}
132
- run : sudo /opt/hostedtoolcache/Python/${{ matrix.python-version }}*/x64/bin/pytest -m partner
133
129
134
- - name : Run tests required sudo
135
- if : ${{ runner.os == 'macOS'}}
136
- run : sudo pytest -m partner
137
130
138
- - name : Run tests required sudo
139
- if : ${{ runner.os == 'Windows'}}
140
- run : pytest -m partner
131
+ test-wheels-windows-86_64 :
132
+ name : Testing wheels for AMD64 windows
133
+ needs : [windows-build,]
134
+ continue-on-error : true
135
+ runs-on : ${{ matrix.os }}
136
+ strategy :
137
+ matrix :
138
+ os : [windows-2022, windows-2019]
139
+ python-version : ["3.9", "3.10", "3.11", "3.12"]
140
+ steps :
141
+ - name : Checkout
142
+ uses : actions/checkout@v4
143
+
144
+ - name : Set up Python ${{ matrix.python-version }}
145
+ uses : actions/setup-python@v5
146
+ with :
147
+ python-version : ${{ matrix.python-version }}
148
+
149
+ - name : Download artifacts
150
+ uses : actions/download-artifact@v4
151
+ with :
152
+ name : wheels-${{ runner.os }}
153
+ path : wheelhouse
154
+
155
+ - name : Install python-snap7
156
+ run : |
157
+ python3 -m pip install --upgrade pip pytest
158
+ python3 -m pip install $(ls wheelhouse/*.whl)
159
+
160
+ - name : Run pytest
161
+ run : |
162
+ pytest -m "server or util or client or mainloop or partner"
0 commit comments