diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 761f59d76..c3df72c10 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -18,7 +18,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest] python-version: ["3.11"] steps: @@ -48,6 +48,28 @@ jobs: brew install ffmpeg opus fi - - name: Run tests with pytest + # output the version of python and pip + - name: PyTest run: | - pytest --maxfail=5 --disable-warnings --tb=short + python -m pytest test --junit-xml results/pytest.xml + continue-on-error: true + + # Show the test results in the Actions tab + - name: Upload Unit Test Results + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: Unit Test Results (Python 3.7) + path: results/*.xml + + - name: Download Artifacts + if: success() || failure() + uses: actions/download-artifact@v2 + with: + path: artifacts + + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + junit_files: artifacts/**/*.xml +