Remove auto-generated _version.py from version control #99
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |