Skip to content

Fix a few warts in GitHub Actions #29

Fix a few warts in GitHub Actions

Fix a few warts in GitHub Actions #29

Workflow file for this run

name: Build and test package
on:
workflow_dispatch:
push:
paths-ignore:
- '.github/workflows/**'
jobs:
build_and_test:
name: Test on Python ${{ matrix.python }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-13, macos-14]
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
# setup-python only gained arm64 from version 3.10.11 onwards
- os: macos-14
python: "3.6"
- os: macos-14
python: "3.7"
- os: macos-14
python: "3.8"
- os: macos-14
python: "3.9"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py