Skip to content

Feat/src layout and uv #29

Feat/src layout and uv

Feat/src layout and uv #29

Workflow file for this run

name: Python tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.4.18"
enable-cache: true
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --all-extras --dev
- name: Lint with flake8
if: always()
run: uv run ruff check .
- name: Test mypy
if: always()
run: uv run mypy .
- name: Test with pytest
if: always()
run: uv run pytest --cov
- name: Produce coverage XML
run: uv run coverage xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: false