Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test Workflow with Coverage - Code-Gen
permissions:
contents: read
actions: read
pull-requests: write
on:
push:
branches:
Expand Down Expand Up @@ -112,10 +113,22 @@ jobs:
if: env.skip_backend_tests == 'false'
run: |
cd src
pytest tests/backend --cov=backend --cov-report=term-missing --cov-report=xml --cov-fail-under=80
pytest tests/backend --cov=backend --cov-report=term-missing --cov-report=xml --cov-fail-under=80 --junitxml=pytest.xml



- name: Pytest Coverage Comment
if: |
always() &&
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.fork == false &&
env.skip_backend_tests == 'false'
uses: MishaKav/pytest-coverage-comment@26f986d2599c288bb62f623d29c2da98609e9cd4 # v1.6.0
with:
pytest-xml-coverage-path: src/coverage.xml
junitxml-path: src/pytest.xml
report-only-changed-files: true

- name: Skip Backend Tests
if: env.skip_backend_tests == 'true'
run: |
Expand Down