Skip to content

fix precommit install #12

fix precommit install

fix precommit install #12

Workflow file for this run

name: Code Quality Checks
on:
push:
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
uv pip compile pyproject.toml -o requirements.txt
uv pip compile pyproject.toml --extra dev -o requirements-dev.txt
uv pip sync requirements.txt requirements-dev.txt
- name: Run MyPy
run: uv pip run mypy src
- name: Run Linter
run: uv pip run ruff check src
- name: Run Formatter
run: uv pip run ruff format src
- name: Run Tests
run: uv pip run pytest tests --cov=src --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.xml
fail_ci_if_error: true