Skip to content

Commit

Permalink
[REGRESSSION] ROLLBACK Python 3.10+ not stable at this time ( closes #29
Browse files Browse the repository at this point in the history
 )
  • Loading branch information
reactive-firewall committed Mar 2, 2022
1 parent 9a63e40 commit 0698978
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 78 deletions.
78 changes: 1 addition & 77 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,85 +157,9 @@ jobs:
if: ${{ always() }}


EXTRATESTS:
if: ${{ success() }}
needs: [BUILD, MATS, COVERAGE]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, 3.10]
env:
OS: ${{ matrix.os }}
PYTHON_VERSION: ${{ matrix.python-version }}
LANG: "en_US.UTF-8"
CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_TOKEN }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies for ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r ./requirements.txt ;
python -m pip install coverage ;
python -m pip install --upgrade mccabe ;
python -m pip install --upgrade pytest ;
python -m pip install --upgrade pydocstyle ;
python -m pip install --upgrade pytest-cov ;
python -m pip install --upgrade pytest-flake8 ;
python -m pip install --upgrade pytest-doctest || true ;
python -m pip install --upgrade coverage ;
- name: Install code-climate tools for ${{ matrix.python-version }}
if: ${{ runner.os }} == "Linux"
shell: bash
run: |
if [ $OS == ubuntu-latest ] ; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter || true ; fi ;
if [ $OS == ubuntu-latest ] ; then chmod +x ./cc-test-reporter 2>/dev/null || true ; fi
if [ $OS == ubuntu-latest ] ; then ./cc-test-reporter before-build || true ; fi
- name: Install deepsource tools for ${{ matrix.python-version }}
if: ${{ runner.os }} == "Linux"
shell: bash
run: |
if [ $OS == ubuntu-latest ] ; then (curl https://deepsource.io/cli | sh) || true ; else echo "SKIP deepsource" ; fi ;
- name: Pre-Clean
id: clean-extras
run: make -j1 -f Makefile clean || true ;
- name: Generate Coverage for py${{ matrix.python-version }} extra tests
if: ${{ success() }}
run: make -j1 -f Makefile test-pytest || ( echo "::error file=Makefile,title=Extras::Some Extra Tests for Python $PYTHON_VERSION Failed on $OS." && exit 0 ) ;
- name: Upload Python ${{ matrix.python-version }} coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
directory: .
flags: ${{ matrix.os }},${{ matrix.python-version }},extras
name: multicast-github-extra-${{ matrix.os }}-${{ matrix.python-version }}
verbose: true
fail_ci_if_error: false
- name: code-climate for ${{ matrix.python-version }}
if: ${{ runner.os }} == "Linux"
shell: bash
run: |
if [ $OS == ubuntu-latest ] ; then ./cc-test-reporter after-build --exit-code 0 || true ; else echo "SKIP code climate" ; fi ;
- name: deepsource for ${{ matrix.python-version }}
if: ${{ runner.os }} == "Linux"
shell: bash
run: |
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 ;
- name: Post-Clean
id: post-extras
run: make -j1 -f Makefile clean || true ;
if: ${{ always() }}


TOX:
if: ${{ success() }}
needs: [MATS, STYLE, COVERAGE, EXTRATESTS]
needs: [MATS, STYLE, COVERAGE]
runs-on: ubuntu-latest

env:
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ test-style: cleanup
$(QUIET)flake8 --ignore=W191,W391 --max-line-length=100 --verbose --count --config=.flake8.ini || $(PYTHON) -m flake8 --ignore=W191,W391 --max-line-length=100 --verbose --count --config=.flake8.ini || true
$(QUIET)tests/check_spelling 2>/dev/null || true
$(QUIET)tests/check_cc_lines 2>/dev/null || true
$(QUIET)tests/check_codecov 2>/dev/null || true
$(QUIET)$(ECHO) "$@: Done."

cleanup:
Expand Down

1 comment on commit 0698978

@reactive-firewall
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #30

Please sign in to comment.