Test using tox #11
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: 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 |