From c3da3e3cce6704d5fa1db3ce133cf911491a8b1a Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 20 Aug 2020 21:18:43 +0200 Subject: [PATCH] Added test dependencies and dropped Python 3.5 --- .github/workflows/pytest_cov.yml | 7 +++++-- .github/workflows/syntax.yml | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest_cov.yml b/.github/workflows/pytest_cov.yml index 535c8012..bc997074 100644 --- a/.github/workflows/pytest_cov.yml +++ b/.github/workflows/pytest_cov.yml @@ -1,4 +1,4 @@ -name: PyTest (3.8) + Coverage +name: PyTest + Coverage on: pull_request: @@ -6,6 +6,7 @@ on: jobs: pyTestCov: + needs: checkSyntax runs-on: ubuntu-latest steps: - name: Python Setup @@ -30,10 +31,12 @@ jobs: run: xvfb-run pytest -v --cov=nw - name: Upload to Codecov uses: codecov/codecov-action@v1 + pyTest: + needs: pyTestCov strategy: matrix: - python-version: [3.5, 3.6, 3.7] + python-version: [3.6, 3.7] runs-on: ubuntu-latest steps: - name: Python Setup diff --git a/.github/workflows/syntax.yml b/.github/workflows/syntax.yml index 20736e91..51aae813 100644 --- a/.github/workflows/syntax.yml +++ b/.github/workflows/syntax.yml @@ -23,6 +23,20 @@ jobs: run: | flake8 nw --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 run: | flake8 nw --count --max-line-length=99 --ignore E203,E221,E226,E241,E251,E261,E266,E302,E305 --show-source --statistics