Add pyproject.toml tests for some options #347
Workflow file for this run
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: 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 | |
toxargs: --pre | |
- 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-dev' | |
toxenv: py312-test-pytestdev | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
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 }} |