Skip to content

Release/2.15.3

Release/2.15.3 #19

Workflow file for this run

name: Pull Request Checks
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
ruff:
name: Lint with ruff
uses: ./.github/workflows/python-job.yml
with:
run: ruff check .
secrets: inherit
test:
name: Run tests
uses: ./.github/workflows/python-job.yml
with:
run: |
mkdir reports
pytest --junit-xml=reports/pytest.xml --cov --cov-report=term-missing:skip-covered | tee reports/coverage.txt
artifact: pytest-results
artifact_path: reports/
secrets: inherit
report-coverage:
name: Report tests coverage
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
needs: [test]
steps:
- name: Download Pytest results
uses: actions/download-artifact@v4
with:
name: pytest-results
path: reports
- name: Add PR comment
uses: MishaKav/pytest-coverage-comment@main
with:
junitxml-path: reports/pytest.xml
pytest-coverage-path: reports/coverage.txt
report-only-changed-files: true