summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2020-02-01 14:05:28 +0100
committerJensDiemer <git@jensdiemer.de>2020-02-01 14:05:28 +0100
commit2a22d7fa9c486104463568c14cbc13429076b14b (patch)
treefc190003ccd8c922214eb19c000642257cdb6513
parent7877e525055c9a775f21b637e98e398ea29aa1a2 (diff)
downloadcreole-2a22d7fa9c486104463568c14cbc13429076b14b.tar.gz
use github action matrix and call pytest directly without tox
-rw-r--r--.github/workflows/pythonapp.yml30
1 files changed, 12 insertions, 18 deletions
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml
index 8addda5..c0dd6a5 100644
--- a/.github/workflows/pythonapp.yml
+++ b/.github/workflows/pythonapp.yml
@@ -8,45 +8,39 @@ on:
jobs:
test:
runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 4
+ matrix:
+ python-version: [3.8, 3.7, 3.6]
steps:
- uses: actions/checkout@v1
- - name: Set up Python 3.7
+ - name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v1
with:
- python-version: 3.7
+ python-version: '${{ matrix.python-version }}'
- - name: Install package
+ - name: 'Install package'
run: |
make install-poetry
source $HOME/.poetry/env
make install
- - name: List installed packages
+ - name: 'List installed packages'
run: |
source $HOME/.poetry/env
poetry run pip freeze
- - name: List all tox test environments
+ - name: 'List all tox test environments'
run: |
source $HOME/.poetry/env
make tox-listenvs
- - name: Run linters
+ - name: 'Run linters'
run: |
source $HOME/.poetry/env
make lint
- - name: Run tests with Python v3.8
+ - name: 'Run tests with Python v${{ matrix.python-version }}'
run: |
source $HOME/.poetry/env
- make tox-py38
-
- - name: Run tests with Python v3.7
- run: |
- source $HOME/.poetry/env
- make tox-py37
-
- - name: Run tests with Python v3.6
- run: |
- source $HOME/.poetry/env
- make tox-py36
+ make pytest