[pre-commit.ci] pre-commit autoupdate #37
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['*'] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
fail-fast: false | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip install tox | |
- name: Run tests | |
run: tox run -e tests | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
flags: ${{ matrix.os }}_${{ matrix.python-version }} | |
if: success() |