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 ++++++--- tox.ini | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) 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) + diff --git a/tox.ini b/tox.ini index ce97e99..4973a7e 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,14 @@ isolated_build = True envlist = py38,py37,py36 skip_missing_interpreters = True +[gh-actions] +# https://github.com/ymyzk/tox-gh-actions +python = + 3.6: py36 + 3.7: py37 + 3.8: py38 + pypy3: pypy3 + [testenv] whitelist_externals = make commands = -- cgit v1.2.1