Skip to content

Test using tox

Test using tox #11

Workflow file for this run

name: Test using tox
# Run manually
on: workflow_dispatch
jobs:
test:
name: Test ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: ["macos-latest", "ubuntu-latest"]
steps:
- uses: actions/checkout@v4
- name: Setup python for test ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Cache tox
id: cache-tox
uses: actions/cache@v3
with:
path: .tox
key: tox-${{ matrix.python }}-${{ hashFiles('pyproject.toml', 'setup.cfg') }}
- name: Install tox
run: pip install tox
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py