Skip to content

Update README.md

Update README.md #71

Workflow file for this run

name: Lint & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install uv
run: |
pip install uv
- name: Install dependencies
run: |
uv sync
- name: Run linters
run: |
uv run black --check .
uv run mypy src
uv run ruff check .
- name: Run tests
run: |
uv run pytest --cov=src --cov-report xml --cov-report term --cov-fail-under=90 tests/unit tests/integration
- name: Generate coverage badge
run: |
pip install "genbadge[coverage]"
genbadge coverage -i coverage.xml -o coverage-badge.svg
- name: Upload coverage report artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
- name: Upload coverage badge artifact
uses: actions/upload-artifact@v4
with:
name: coverage-badge
path: coverage-badge.svg