Added test dependencies and dropped Python 3.5

This commit is contained in:
Veronica K. B. Olsen
2020-08-20 21:18:43 +02:00
parent 3fa21688aa
commit c3da3e3cce
2 changed files with 19 additions and 2 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
name: PyTest (3.8) + Coverage name: PyTest + Coverage
on: on:
pull_request: pull_request:
@@ -6,6 +6,7 @@ on:
jobs: jobs:
pyTestCov: pyTestCov:
needs: checkSyntax
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Python Setup - name: Python Setup
@@ -30,10 +31,12 @@ jobs:
run: xvfb-run pytest -v --cov=nw run: xvfb-run pytest -v --cov=nw
- name: Upload to Codecov - name: Upload to Codecov
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1
pyTest: pyTest:
needs: pyTestCov
strategy: strategy:
matrix: matrix:
python-version: [3.5, 3.6, 3.7] python-version: [3.6, 3.7]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Python Setup - name: Python Setup
+14
View File
@@ -23,6 +23,20 @@ jobs:
run: | run: |
flake8 nw --count --select=E9,F63,F7,F82 --show-source --statistics flake8 nw --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 tests --count --select=E9,F63,F7,F82 --show-source --statistics flake8 tests --count --select=E9,F63,F7,F82 --show-source --statistics
checkStyle:
needs: checkSyntax
runs-on: ubuntu-latest
steps:
- name: Python Setup
uses: actions/setup-python@v1
with:
python-version: 3.7
architecture: x64
- name: Checkout Source
uses: actions/checkout@v2
- name: Install flake8
run: pip install flake8
- name: Coding Style Violations - name: Coding Style Violations
run: | run: |
flake8 nw --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --show-source --statistics flake8 nw --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --show-source --statistics