93
93
python-version : ${{ matrix.python-version }}
94
94
- name : Setup dependencies
95
95
run : |
96
- python -m pip install --upgrade pip setuptools wheel
96
+ python -m pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37"
97
97
pip install -r ./requirements.txt
98
+ pip install -r ./test-requirements.txt || true
98
99
- name : Pre-build
99
100
id : bootstrap
100
101
run : |
@@ -151,8 +152,8 @@ jobs:
151
152
python-version : ${{ matrix.python-version }}
152
153
- name : Install dependencies for ${{ matrix.python-version }}
153
154
run : |
154
- pip install -r ./requirements.txt ;
155
- pip install coverage || true ;
155
+ pip install -r ./requirements.txt
156
+ pip install -r ./test-requirements.txt || true
156
157
- name : Pre-Clean
157
158
id : clean
158
159
run : make -j1 -f Makefile clean || true ;
@@ -198,23 +199,18 @@ jobs:
198
199
python-version : ${{ matrix.python-version }}
199
200
- name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
200
201
run : |
201
- pip install --upgrade --upgrade-strategy eager pip setuptools wheel ;
202
- pip install --upgrade --upgrade-strategy eager -r ./requirements.txt ;
203
- pip install --upgrade --upgrade-strategy eager pytest ;
204
- pip install --upgrade --upgrade-strategy eager pytest-cov ;
205
- pip install --upgrade --upgrade-strategy eager coverage ;
202
+ pip install --upgrade "pip>=21.0" "setuptools>=45.0" "wheel>=0.37"
203
+ pip install -r ./requirements.txt
204
+ pip install -r ./test-requirements.txt || true
206
205
- name : Install code-climate tools for ${{ matrix.python-version }}
207
- if : ${{ runner.os }} = = "Linux"
206
+ if : ${{ runner.os }} ! = "Linux"
208
207
shell : bash
209
- run : |
210
- if [ $OS == ubuntu-latest ] ; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter || true ; fi ;
211
- if [ $OS == ubuntu-latest ] ; then chmod +x ./cc-test-reporter 2>/dev/null || true ; fi
212
- if [ $OS == ubuntu-latest ] ; then ./cc-test-reporter before-build || true ; fi
208
+ run : if [ "$OS" == "macos-latest" ] ; then ./tests/fetch_cc-test-reporter || true ; fi ;
213
209
- name : Install deepsource tools for ${{ matrix.python-version }}
214
210
if : ${{ runner.os }} == "Linux"
215
211
shell : bash
216
212
run : |
217
- if [ $OS == ubuntu-latest ] ; then (curl https://deepsource.io/cli | sh) || true ; else echo "SKIP deepsource" ; fi ;
213
+ if [ " $OS" == " ubuntu-latest" ] ; then (curl https://deepsource.io/cli | sh) || true ; else echo "SKIP deepsource" ; fi ;
218
214
- name : Pre-Clean
219
215
id : clean
220
216
run : make -j1 -f Makefile clean || true ;
@@ -241,15 +237,15 @@ jobs:
241
237
path : ./test-reports/
242
238
if-no-files-found : ignore
243
239
- name : code-climate for ${{ matrix.python-version }}
244
- if : ${{ runner.os }} = = "Linux"
240
+ if : ${{ runner.os }} ! = "Linux"
245
241
shell : bash
246
242
run : |
247
- if [ $OS == ubuntu -latest ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
243
+ if [ " $OS" == "macos -latest" ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
248
244
- name : deepsource for ${{ matrix.python-version }}
249
245
if : ${{ runner.os }} == "Linux"
250
246
shell : bash
251
247
run : |
252
- if [ $OS == ubuntu-latest ] ; then ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; else echo "SKIP deepsource" ; fi ;
248
+ if [ " $OS" == " ubuntu-latest" ] ; then ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; else echo "SKIP deepsource" ; fi ;
253
249
- name : Post-Clean
254
250
id : post
255
251
run : make -j1 -f Makefile clean || true ;
@@ -282,23 +278,18 @@ jobs:
282
278
python-version : ${{ matrix.python-version }}
283
279
- name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
284
280
run : |
285
- pip install --upgrade --upgrade-strategy eager pip setuptools wheel ;
286
- pip install --upgrade --upgrade-strategy eager -r ./requirements.txt ;
287
- pip install --upgrade --upgrade-strategy eager pytest ;
288
- pip install --upgrade --upgrade-strategy eager pytest-cov ;
289
- pip install --upgrade --upgrade-strategy eager coverage ;
281
+ pip install --upgrade "pip>=21.0" "setuptools>=45.0" "wheel>=0.37" ;
282
+ pip install -r ./requirements.txt ;
283
+ pip install -r ./test-requirements.txt || true ;
290
284
- name : Install code-climate tools for ${{ matrix.python-version }}
291
285
if : ${{ runner.os }} == "Linux"
292
286
shell : bash
293
- run : |
294
- if [ $OS == ubuntu-latest ] ; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter || true ; fi ;
295
- if [ $OS == ubuntu-latest ] ; then chmod +x ./cc-test-reporter 2>/dev/null || true ; fi
296
- if [ $OS == ubuntu-latest ] ; then ./cc-test-reporter before-build || true ; fi
287
+ run : if [ "$OS" == "ubuntu-latest" ] ; then ./tests/fetch_cc-test-reporter || true ; fi ;
297
288
- name : Install deepsource tools for ${{ matrix.python-version }}
298
289
if : ${{ runner.os }} == "Linux"
299
290
shell : bash
300
291
run : |
301
- if [ $OS == ubuntu-latest ] ; then (curl https://deepsource.io/cli | sh) || true ; else echo "SKIP deepsource" ; fi ;
292
+ if [ " $OS" == " ubuntu-latest" ] ; then (curl https://deepsource.io/cli | sh) || true ; else echo "SKIP deepsource" ; fi ;
302
293
- name : Pre-Clean
303
294
id : clean
304
295
run : make -j1 -f Makefile clean || true ;
@@ -328,12 +319,12 @@ jobs:
328
319
if : ${{ runner.os }} == "Linux"
329
320
shell : bash
330
321
run : |
331
- if [ $OS == ubuntu-latest ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
322
+ if [ " $OS" == " ubuntu-latest" ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
332
323
- name : deepsource for ${{ matrix.python-version }}
333
324
if : ${{ runner.os }} == "Linux"
334
325
shell : bash
335
326
run : |
336
- if [ $OS == ubuntu-latest ] ; then ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; else echo "SKIP deepsource" ; fi ;
327
+ if [ " $OS" == " ubuntu-latest" ] ; then ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml 2>/dev/null || true ; else echo "SKIP deepsource" ; fi ;
337
328
- name : Post-Clean
338
329
id : post
339
330
run : make -j1 -f Makefile clean || true ;
@@ -357,11 +348,9 @@ jobs:
357
348
python-version : " 3.10"
358
349
- name : Install dependencies for python Linters
359
350
run : |
360
- pip install --upgrade pip setuptools wheel
351
+ pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37" ;
361
352
pip install -r ./requirements.txt ;
362
- pip install flake8 ;
363
- pip install pyflakes ;
364
- pip install pep8 ;
353
+ pip install -r ./test-requirements.txt || true ;
365
354
- name : Pre-Clean
366
355
id : clean
367
356
run : make -j1 -f Makefile clean || true ;
@@ -403,17 +392,12 @@ jobs:
403
392
python-version : ${{ matrix.python-version }}
404
393
- name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }}
405
394
run : |
406
- pip install --upgrade pip setuptools wheel
395
+ pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37" ;
407
396
pip install -r ./requirements.txt ;
408
- pip install coverage ;
409
- pip install pytest ;
410
- pip install pytest-cov ;
397
+ pip install -r ./test-requirements.txt || true ;
411
398
- name : Install code-climate tools for ${{ matrix.python-version }}
412
399
if : ${{ runner.os }} != "Linux"
413
- run : |
414
- if [ $OS == macos-latest ] ; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter || true ; fi ;
415
- if [ $OS == macos-latest ] ; then chmod +x ./cc-test-reporter 2>/dev/null || true ; fi
416
- if [ $OS == macos-latest ] ; then ./cc-test-reporter before-build || true ; fi
400
+ run : if [ $OS == macos-latest ] ; then ./tests/fetch_cc-test-reporter || true ; fi ;
417
401
shell : bash
418
402
- name : Pre-Clean
419
403
id : clean-prep
@@ -448,7 +432,7 @@ jobs:
448
432
- name : code-climate for ${{ matrix.python-version }}
449
433
if : ${{ runner.os }} != "Linux"
450
434
run : |
451
- if [ $OS == macos-latest ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
435
+ if [ " $OS" == " macos-latest" ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
452
436
- name : Post-purge
453
437
id : post-uninstall
454
438
run : make -j1 -f Makefile purge || true ;
@@ -477,15 +461,9 @@ jobs:
477
461
python-version : " 3.10"
478
462
- name : Install dependencies for Tox
479
463
run : |
480
- pip install --upgrade pip setuptools wheel tox
464
+ pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37" " tox>=3.0";
481
465
pip install -r ./requirements.txt ;
482
- pip install coverage ;
483
- pip install codecov ;
484
- pip install flake8 ;
485
- pip install pyflakes ;
486
- pip install pep8 ;
487
- pip install tox ;
488
- pip install six ;
466
+ pip install -r ./test-requirements.txt || true ;
489
467
- name : Pre-Clean
490
468
id : clean
491
469
run : make -j1 -f Makefile clean || true ;
0 commit comments