Skip to content

Commit de98224

Browse files
[PATCH] Part 2 of many - Possible fix for windows trouble in GHA (- WIP PR #82 -)
1 parent 192fc5d commit de98224

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/Tests.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ jobs:
173173
if: ${{ success() }}
174174
needs: [BUILD, MATS]
175175
runs-on: ${{ matrix.os }}
176+
defaults:
177+
run:
178+
shell: bash
176179
timeout-minutes: 10
177180
strategy:
178181
matrix:
@@ -202,19 +205,23 @@ jobs:
202205
if: ${{ !cancelled() && runner.os == 'Windows' }}
203206
run: python -m pip install --upgrade pip
204207
- name: Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
208+
shell: bash
205209
run: make -f Makefile test-reqs ;
206210
- name: Pre-Clean
207211
id: clean
212+
shell: bash
208213
run: make -j1 -f Makefile clean || true ;
209214
- name: Install code-climate tools for ${{ matrix.python-version }}
210215
if: ${{ !cancelled() && runner.os != 'Windows' }}
211216
shell: bash
212217
run: ./tests/fetch-test-reporter || true ;
213218
- name: Generate Coverage for py3.9 on ${{ matrix.os }}
214219
if: ${{ matrix.python-version == '3.9' }}
220+
shell: bash
215221
run: make -f Makefile test ;
216222
- name: Generate Coverage for py${{ matrix.python-version }} on ${{ matrix.os }}
217223
if: ${{ matrix.python-version != '3.9' }}
224+
shell: bash
218225
run: make -f Makefile test-pytest ;
219226
- name: Upload Python ${{ matrix.python-version }} coverage to Codecov
220227
uses: codecov/codecov-action@v5
@@ -244,6 +251,7 @@ jobs:
244251
./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ;
245252
- name: Post-Clean
246253
id: post
254+
shell: bash
247255
run: make -j1 -f Makefile clean || true ;
248256
if: ${{ !cancelled() }}
249257

@@ -267,10 +275,8 @@ jobs:
267275
with:
268276
python-version: "3.12"
269277
- name: Install dependencies for python Linters
270-
run: |
271-
pip install --upgrade "pip>=24.3.1" "setuptools>=45.0" "wheel>=0.37" ;
272-
pip install -r ./requirements.txt ;
273-
pip install -r ./test-requirements.txt || true ;
278+
shell: bash
279+
run: make -f Makefile test-reqs || true ;
274280
- name: Pre-Clean
275281
id: clean
276282
run: make -j1 -f Makefile clean || true ;
@@ -314,18 +320,18 @@ jobs:
314320
with:
315321
python-version: ${{ matrix.python-version }}
316322
- name: Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
317-
run: |
318-
pip install --upgrade "pip>=24.3.1" "setuptools>=45.0" "wheel>=0.37" ;
319-
pip install -r ./requirements.txt ;
320-
pip install -r ./test-requirements.txt || true ;
323+
shell: bash
324+
run: make -f Makefile test-reqs ;
321325
- name: Install code-climate tools for ${{ matrix.python-version }} on ${{ matrix.os }}
322326
if: ${{ !cancelled() && runner.os != 'Windows' }}
323327
run: if [ $OS == macos-latest ] ; then ./tests/fetch-test-reporter || true ; fi ;
324328
shell: bash
325329
- name: Pre-Clean
326330
id: clean-prep
331+
shell: bash
327332
run: make -j1 -f Makefile clean ;
328333
- name: Pre-build for Python ${{ matrix.python-version }} on ${{ matrix.os }}
334+
shell: bash
329335
run: make -j1 -f Makefile build ;
330336
if: ${{ success() }}
331337
- name: Pre-install for Python ${{ matrix.python-version }} on ${{ matrix.os }}

0 commit comments

Comments
 (0)