diff --git a/.github/workflows/test_jobs_py.yml b/.github/workflows/test_jobs_py.yml index bbcd89b0..6d7b625d 100644 --- a/.github/workflows/test_jobs_py.yml +++ b/.github/workflows/test_jobs_py.yml @@ -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 @@ -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