Skip to content

[pre-commit.ci] pre-commit autoupdate #35

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #35

Workflow file for this run

name: Unit Tests
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -e {0} # -e to fail on error
jobs:
run_tester:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: blob:none
- uses: drivendataorg/setup-python-uv-action@main
with:
python-version: ${{ matrix.python }}
cache: packages
cache-dependency-path: pyproject.toml
- run: uv pip install -e .[all] coverage pytest mypy
- run: coverage run -m pytest -vv --color=yes
- uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
- run: mypy .