9393        python-version : ${{ matrix.python-version }} 
9494    - name : Setup dependencies 
9595      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"  
9797        pip install -r ./requirements.txt 
98+         pip install -r ./test-requirements.txt || true  
9899name : Pre-build 
99100      id : bootstrap 
100101      run : | 
@@ -151,8 +152,8 @@ jobs:
151152        python-version : ${{ matrix.python-version }} 
152153    - name : Install dependencies for ${{ matrix.python-version }} 
153154      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  
156157name : Pre-Clean 
157158      id : clean 
158159      run : make -j1 -f Makefile clean || true ; 
@@ -198,23 +199,18 @@ jobs:
198199        python-version : ${{ matrix.python-version }} 
199200    - name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }} 
200201      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  
206205name : Install code-climate tools for ${{ matrix.python-version }} 
207-       if : ${{ runner.os }} = = "Linux" 
206+       if : ${{ runner.os }} ! = "Linux" 
208207      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 ; 
213209    - name : Install deepsource tools for ${{ matrix.python-version }} 
214210      if : ${{ runner.os }} == "Linux" 
215211      shell : bash 
216212      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 ; 
218214name : Pre-Clean 
219215      id : clean 
220216      run : make -j1 -f Makefile clean || true ; 
@@ -241,15 +237,15 @@ jobs:
241237        path : ./test-reports/ 
242238        if-no-files-found : ignore 
243239    - name : code-climate for ${{ matrix.python-version }} 
244-       if : ${{ runner.os }} = = "Linux" 
240+       if : ${{ runner.os }} ! = "Linux" 
245241      shell : bash 
246242      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 ; 
248244name : deepsource for ${{ matrix.python-version }} 
249245      if : ${{ runner.os }} == "Linux" 
250246      shell : bash 
251247      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 ; 
253249name : Post-Clean 
254250      id : post 
255251      run : make -j1 -f Makefile clean || true ; 
@@ -282,23 +278,18 @@ jobs:
282278        python-version : ${{ matrix.python-version }} 
283279    - name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }} 
284280      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 ; 
290284name : Install code-climate tools for ${{ matrix.python-version }} 
291285      if : ${{ runner.os }} == "Linux" 
292286      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 ; 
297288    - name : Install deepsource tools for ${{ matrix.python-version }} 
298289      if : ${{ runner.os }} == "Linux" 
299290      shell : bash 
300291      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 ; 
302293name : Pre-Clean 
303294      id : clean 
304295      run : make -j1 -f Makefile clean || true ; 
@@ -328,12 +319,12 @@ jobs:
328319      if : ${{ runner.os }} == "Linux" 
329320      shell : bash 
330321      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 ; 
332323name : deepsource for ${{ matrix.python-version }} 
333324      if : ${{ runner.os }} == "Linux" 
334325      shell : bash 
335326      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 ; 
337328name : Post-Clean 
338329      id : post 
339330      run : make -j1 -f Makefile clean || true ; 
@@ -357,11 +348,9 @@ jobs:
357348        python-version : " 3.10" 
358349    - name : Install dependencies for python Linters 
359350      run : | 
360-         pip install --upgrade pip  setuptools  wheel 
351+         pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37" ;  
361352        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 ; 
365354name : Pre-Clean 
366355      id : clean 
367356      run : make -j1 -f Makefile clean || true ; 
@@ -403,17 +392,12 @@ jobs:
403392        python-version : ${{ matrix.python-version }} 
404393    - name : Install dependencies for python ${{ matrix.python-version }} on ${{ matrix.os }} 
405394      run : | 
406-         pip install --upgrade pip  setuptools  wheel 
395+         pip install --upgrade " pip>=21.0" " setuptools>=45.0" " wheel>=0.37" ;  
407396        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 ; 
411398name : Install code-climate tools for ${{ matrix.python-version }} 
412399      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 ; 
417401      shell : bash 
418402    - name : Pre-Clean 
419403      id : clean-prep 
@@ -448,7 +432,7 @@ jobs:
448432    - name : code-climate for ${{ matrix.python-version }} 
449433      if : ${{ runner.os }} != "Linux" 
450434      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 ; 
452436name : Post-purge 
453437      id : post-uninstall 
454438      run : make -j1 -f Makefile purge || true ; 
@@ -477,15 +461,9 @@ jobs:
477461        python-version : " 3.10" 
478462    - name : Install dependencies for Tox 
479463      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";  
481465        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 ; 
489467name : Pre-Clean 
490468      id : clean 
491469      run : make -j1 -f Makefile clean || true ; 
0 commit comments