Skip to content

Commit

Permalink
Add test reporting summary
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-flinn committed Nov 22, 2023
1 parent ac905c2 commit 516145c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test_jobs_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
with:
python-version: '3.11'

- name: Install pipenv and setup project
- name: Install Pipenv and Setup Project
working-directory: .github/jobs-py
run: |
mkdir reports
pip install pipenv
pipenv install --dev
Expand All @@ -37,11 +38,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pipenv run pytest tests/unit
pipenv run pytest tests/unit --junit-xml=reports/unit.xml --tb
- name: Run E2E Tests
working-directory: .github/jobs-py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pipenv run pytest tests/e2e
pipenv run pytest tests/e2e --junit-xml=reports/e2e.xml --tb
- name: Report test results
uses: dorny/test-reporter@afe6793191b75b608954023a46831a3fe10048d4 # v1.7.0
if: always()
with:
name: Test Results
path: ".github/jobs-py/reports/*.xml"
reporter: dotnet-trx
fail-on-error: true

0 comments on commit 516145c

Please sign in to comment.