Skip to content

Fix error in Create QC schema dialog #9

Fix error in Create QC schema dialog

Fix error in Create QC schema dialog #9

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
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