From 63dae7c504a9fa0732198dd12654016fbeb0c6aa Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Thu, 13 Feb 2020 09:54:48 +0100 Subject: run tests first, then linting --- .github/workflows/pythonapp.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.github/workflows/pythonapp.yml') diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 2541ec4..6a2c6ee 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -35,16 +35,16 @@ jobs: source $HOME/.poetry/env make tox-listenvs - - name: 'Run linters' - if: matrix.python-version == '3.8' + - name: 'Run tests with Python v${{ matrix.python-version }}' run: | source $HOME/.poetry/env - make lint + make pytest - - name: 'Run tests with Python v${{ matrix.python-version }}' + - name: 'Run linters' + if: matrix.python-version == '3.8' run: | source $HOME/.poetry/env - make pytest + make lint - name: 'Upload coverage report' run: bash <(curl -s https://codecov.io/bash) -- cgit v1.2.1 From 9cc2afe55b8610efdea61f7263ef89ca78a2b473 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Thu, 13 Feb 2020 10:03:53 +0100 Subject: use https://github.com/ymyzk/tox-gh-actions on gitlab CI --- .github/workflows/pythonapp.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.github/workflows/pythonapp.yml') diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 6a2c6ee..75901e0 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -24,6 +24,7 @@ jobs: make install-poetry source $HOME/.poetry/env make install + pip3 install tox-gh-actions - name: 'List installed packages' run: | @@ -38,7 +39,10 @@ jobs: - name: 'Run tests with Python v${{ matrix.python-version }}' run: | source $HOME/.poetry/env - make pytest + make tox + + - name: 'Upload coverage report' + run: bash <(curl -s https://codecov.io/bash) - name: 'Run linters' if: matrix.python-version == '3.8' @@ -46,5 +50,4 @@ jobs: source $HOME/.poetry/env make lint - - name: 'Upload coverage report' - run: bash <(curl -s https://codecov.io/bash) + -- cgit v1.2.1