Update doc and image links #1
Workflow file for this run
This file contains 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: 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 | |
black: | |
name: Lint with black | |
uses: ./.github/workflows/python-job.yml | |
with: | |
run: black --check . | |
secrets: inherit | |
isort: | |
name: Lint with isort | |
uses: ./.github/workflows/python-job.yml | |
with: | |
run: isort --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 |