Skip to content

tox: Run 3.6 on ubuntu-20.04 as ubuntu-22.04 does not have it #18

tox: Run 3.6 on ubuntu-20.04 as ubuntu-22.04 does not have it

tox: Run 3.6 on ubuntu-20.04 as ubuntu-22.04 does not have it #18

Workflow file for this run

name: tox

Check failure on line 1 in .github/workflows/tox.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tox.yml

Invalid workflow file

(Line: 13, Col: 3): The identifier 'tox_on_ubuntu-22.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and must be less than 100 characters., (Line: 32, Col: 3): The identifier 'tox_on_ubuntu-20.04' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and must be less than 100 characters.
on:
pull_request: # PR into master (=release)
branches:
- master
pull_request_target: # PR (from fork) into develop.
branches: # Uses workflow defined in base, not in fork.
- develop
workflow_dispatch: # to trigger workflow manually
jobs:
tox_on_ubuntu-22.04:
runs-on: ubuntu-22.04
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install tox
run: pip install tox
- name: run tox
# Run tox using the version of Python in `PATH`
run: tox -e py
tox_on_ubuntu-20.04:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.6"]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: install tox
run: pip install tox
- name: run tox
# Run tox using the version of Python in `PATH`
run: tox -e py