update testing #47
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: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'Reason for running workflow' | |
required: true | |
jobs: | |
test: | |
runs-on: ${{ matrix.platform }} | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
strategy: | |
matrix: | |
python-version: ['3.8', 3.9', '3.10', '3.11', '3.12'] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
exclude: # Only test on the oldest and latest supported stable Python on macOS and Windows. | |
- platform: macos-latest | |
python-version: 3.9 | |
- platform: windows-latest | |
python-version: 3.9 | |
- platform: macos-latest | |
python-version: 3.10 | |
- platform: windows-latest | |
python-version: 3.10 | |
- platform: macos-latest | |
python-version: 3.11 | |
- platform: windows-latest | |
python-version: 3.11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: pip install tox coverage | |
- name: Run Tox | |
run: tox |