Skip to content

Remove auto-generated _version.py from version control #99

Remove auto-generated _version.py from version control

Remove auto-generated _version.py from version control #99

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --group dev
- name: Run tests with coverage
run: uv run coverage run -m pytest tests/ -v
- name: Generate coverage report
run: |
uv run coverage report --format=markdown > coverage.md
uv run coverage report --fail-under=85
uv run coverage xml
- name: Add coverage comment to PR
uses: MishaKav/pytest-coverage-comment@main
if: github.event_name == 'pull_request'
with:
pytest-xml-coverage-path: ./coverage.xml
coverage-path-prefix: src/
title: Coverage Report
badge-title: Coverage
hide-badge: false
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false