update tests for python 3.10 and complexity

This commit is contained in:
Matthew Stratford 2021-09-11 18:01:59 +01:00
parent 0848771e3f
commit ec2ddd055e

View file

@ -10,7 +10,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [3.8, 3.9] python-version: [3.8, 3.9, 3.10]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -21,7 +21,7 @@ jobs:
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install flake8 pip install -r build/requirements-dev.txt
pip install -r build/requirements.txt pip install -r build/requirements.txt
pip install -r build/requirements-macos.txt pip install -r build/requirements-macos.txt
- name: Install bapsicle as module - name: Install bapsicle as module
@ -32,7 +32,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --ignore=E402,E226,E24,W50,W690 --max-complexity=20 --max-line-length=127 --statistics flake8 . --count --ignore=E402,E226,E24,W50,W690 --max-complexity=25 --max-line-length=127 --statistics
- name: Test with unittest - name: Test with unittest
if: ${{ always() }} if: ${{ always() }}
timeout-minutes: 10 timeout-minutes: 10