mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-07-21 12:21:03 +02:00
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.
33 lines
652 B
YAML
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 }}
|