summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2020-11-18 08:12:50 +0100
committerMichael Howitz <mh@gocept.com>2020-11-18 09:23:48 +0100
commit343c6d0a9eaf3f8f2f2df015f4e416035bd7ae22 (patch)
tree9f53d5d671de9132f954811d6a81d18c56b406cd
parent3a0dc3919d58941f34a2ac77f2cca41a97fcf53c (diff)
downloadzope-browser-343c6d0a9eaf3f8f2f2df015f4e416035bd7ae22.tar.gz
Ease the matrix by using the tox env name as job name.
-rw-r--r--.github/workflows/tests.yml30
1 files changed, 15 insertions, 15 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 37ae5b1..c4df220 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -12,26 +12,26 @@ jobs:
strategy:
matrix:
config:
- # [name, Python version, tox env]
- - ["lint", "3.8", "lint"]
- - ["2.7", "2.7", "py27"]
- - ["3.5", "3.5", "py35"]
- - ["3.6", "3.6", "py36"]
- - ["3.7", "3.7", "py37"]
- - ["3.8", "3.8", "py38"]
- - ["3.9", "3.9", "py39"]
- - ["pypy2", "pypy2", "pypy"]
- - ["pypy3", "pypy3", "pypy3"]
- - ["coverage", "3.8", "coverage"]
+ # [Python version, tox env]
+ - ["3.8", "lint"]
+ - ["2.7", "py27"]
+ - ["3.5", "py35"]
+ - ["3.6", "py36"]
+ - ["3.7", "py37"]
+ - ["3.8", "py38"]
+ - ["3.9", "py39"]
+ - ["pypy2", "pypy"]
+ - ["pypy3", "pypy3"]
+ - ["3.8", "coverage"]
runs-on: ubuntu-latest
- name: ${{ matrix.config[0] }}
+ name: ${{ matrix.config[1] }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
- python-version: ${{ matrix.config[1] }}
+ python-version: ${{ matrix.config[0] }}
- name: Pip cache
uses: actions/cache@v2
with:
@@ -44,9 +44,9 @@ jobs:
python -m pip install --upgrade pip
pip install tox coveralls coverage-python-version
- name: Test
- run: tox -e ${{ matrix.config[2] }}
+ run: tox -e ${{ matrix.config[1] }}
- name: Coverage
- if: matrix.config[2] == 'coverage'
+ if: matrix.config[1] == 'coverage'
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}