summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-02-13 10:03:53 +0100
committerJensDiemer <git@jensdiemer.de>2020-02-13 10:03:53 +0100
commit9cc2afe55b8610efdea61f7263ef89ca78a2b473 (patch)
tree80392eaf8c710268df15e166c1df2eca6e6b9381
parent63dae7c504a9fa0732198dd12654016fbeb0c6aa (diff)
downloadcreole-9cc2afe55b8610efdea61f7263ef89ca78a2b473.tar.gz
use https://github.com/ymyzk/tox-gh-actions on gitlab CI
-rw-r--r--.github/workflows/pythonapp.yml9
-rw-r--r--tox.ini8
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 =