Skip to content

Run unit tests

Run unit tests #450

Workflow file for this run

name: Run unit tests
on:
pull_request:
push:
branches: [ main ]
tags:
- '*'
workflow_dispatch:
schedule:
# Run every Tuesday at 03:53 UTC
- cron: 53 3 * * 2
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python-version: '3.8'
toxenv: py38-test-pytestoldest
- os: windows-latest
python-version: '3.8'
toxenv: py38-test-pytest50
- os: macos-latest
python-version: '3.8'
toxenv: py38-test-pytest51
- os: ubuntu-latest
python-version: '3.8'
toxenv: py38-test-pytest52
- os: windows-latest
python-version: '3.8'
toxenv: py38-test-pytest53
- os: ubuntu-latest
python-version: '3.8'
toxenv: py38-test-pytest60
- os: ubuntu-latest
python-version: '3.9'
toxenv: py39-test-pytest61
- os: ubuntu-latest
python-version: '3.9'
toxenv: py39-test-pytest62
- os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-pytest70
- os: ubuntu-latest
python-version: '3.10'
toxenv: py310-test-pytest71
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytest72
- os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-pytest73
- os: ubuntu-latest
python-version: '3.11'
toxenv: py311-test-pytest74
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: macos-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: windows-latest
python-version: '3.12'
toxenv: py312-test-pytest80
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytest81
- os: macos-latest
python-version: '3.12'
toxenv: py312-test-pytest81
- os: windows-latest
python-version: '3.12'
toxenv: py312-test-pytest81
- os: macos-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: windows-latest
python-version: '3.11'
toxenv: py311-test-pytestdev
- os: ubuntu-latest
python-version: '3.12'
toxenv: py312-test-pytestdev-numpydev
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
run: python -m pip install tox
- name: Run Tox
run: tox ${{ matrix.toxargs }} -v -e ${{ matrix.toxenv }}