[pre-commit.ci] pre-commit autoupdate (#9) #19
This file contains hidden or 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: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "0 5 1,15 * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
# to fail on error in multiline statements (-e), in pipes (-o pipefail), and on unset variables (-u). | |
shell: bash -euo pipefail {0} | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-latest | |
python: "3.10" | |
- os: ubuntu-latest | |
python: "3.12" | |
- os: ubuntu-latest | |
python: "3.12" | |
pip-flags: "--pre" | |
name: PRE-RELEASE DEPENDENCIES | |
name: ${{ matrix.name }} Python ${{ matrix.python }} | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
filter: blob:none | |
fetch-depth: 0 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
cache-dependency-glob: pyproject.toml | |
- name: run tests using hatch | |
env: | |
MPLBACKEND: agg | |
PLATFORM: ${{ matrix.os }} | |
DISPLAY: :42 | |
run: uvx hatch test --cover --python ${{ matrix.python }} | |
- name: Upload coverage | |
uses: codecov/codecov-action@v4 |