@@ -90,14 +90,14 @@ jobs:
9090 path : wheelhouse/${{ runner.os }}/*.whl
9191
9292
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]
9696 continue-on-error : true
9797 runs-on : ${{ matrix.os }}
9898 strategy :
9999 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]
101101 python-version : ["3.9", "3.10", "3.11", "3.12"]
102102 steps :
103103 - name : Checkout
@@ -108,33 +108,55 @@ jobs:
108108 with :
109109 python-version : ${{ matrix.python-version }}
110110
111- - name : Install pytest
112- run : |
113- python3 -m pip install --upgrade pip
114- python3 -m pip install pytest
115-
116111 - name : Download artifacts
117112 uses : actions/download-artifact@v4
118113 with :
119114 name : wheels-${{ runner.os }}
120115 path : wheelhouse
121116
122117 - 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)
124123
125- - name : Run pytest
124+ - name : Run tests
126125 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
129128
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
133129
134- - name : Run tests required sudo
135- if : ${{ runner.os == 'macOS'}}
136- run : sudo pytest -m partner
137130
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