Include tox-envs in test name. #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "CI" | |
on: | |
push: | |
jobs: | |
tests: | |
name: "${{ matrix.tox-envs }} - Python ${{ matrix.python-version }}" | |
runs-on: "ubuntu-latest" | |
env: | |
PY_COLORS: 1 | |
strategy: | |
matrix: | |
include: | |
- python-version: "3.8" | |
tox-envs: "py38" | |
- python-version: "3.12" | |
tox-envs: "py312" | |
- python-version: "3.8" | |
tox-envs: "py38-server520" | |
- python-version: "3.12" | |
tox-envs: "py312-server520" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: "Install dependencies" | |
run: | | |
set -xe -o nounset | |
python -VV | |
python -m site | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --upgrade virtualenv tox | |
- name: "Run tox targets for ${{ matrix.python-version }}" | |
run: | | |
set -xe -o nounset | |
python -m tox -a -vv | |
python -m tox -v -e ${{ matrix.tox-envs }} -- -v --color=yes | |
flake8: | |
env: | |
PY_COLORS: 1 | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.x" | |
- name: "Install dependencies" | |
shell: "bash" | |
run: | | |
set -xe -o nounset | |
python -VV | |
python -m site | |
python -m pip install --upgrade pip flake8 setuptools wheel | |
- name: "Run flake8" | |
shell: "bash" | |
run: | | |
set -xe -o nounset | |
flake8 --config .flake8 devpi_jenkins tests |