Skip to content

Commit

Permalink
Add CI step to upload HTML test report as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
StarKhan6368 committed Oct 2, 2024
1 parent 93f91a1 commit b0d9bfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: pip install -r requirements.txt
- name: Run contract as tests with Specmatic Python
working-directory: main
run: coverage run --branch -m pytest test -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml
run: coverage run --branch -m pytest test/test_contract_with_api_coverage.py -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml
- name: Publish contract test report
uses: mikepenz/action-junit-report@v4
if: always()
Expand All @@ -45,3 +45,8 @@ jobs:
with:
name: ${{matrix.os}}-coverage-report
path: main/coverage-report
- name: Upload HTML Test Report
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-html-report
path: main/build/reports/specmatic/html

0 comments on commit b0d9bfd

Please sign in to comment.