Files
anybadge/.github/workflows/tox.yaml
Jon Grace-Cox e6318f3446 test: Add tox testing
Add `tox.ini` config with supported versions, and a new tox CI
workflow to run tox tests on master branch changes. This is "expensive"
so we may consider limiting execution further.
2024-12-30 08:29:56 -05:00

33 lines
652 B
YAML

name: Run Tox Tests
on:
push:
branches:
- master # Run only on the master branch
jobs:
test:
name: Test with Tox
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tox
run: tox -e py${{ matrix.python-version }}