diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ddd2306..d76bd3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,9 +96,17 @@ jobs: - name: Run tests - #timeout-minutes: 10 + id: run_tests run: | # Run pytest - multipass exec router-vm -- sh -c 'cd test/ && ~/.local/bin/pytest -v -s' + multipass exec router-vm -- sh -c 'cd test/ && ~/.local/bin/pytest -v -s --html=report.html --self-contained-html' + + - name: Archive test report + if: always() && steps.run_tests.outcome == 'success' + uses: actions/upload-artifact@v4 + with: + name: Test report + path: test/*.html + if-no-files-found: error \ No newline at end of file diff --git a/test/requirements.txt b/test/requirements.txt index e8fc0d0..d45b021 100644 --- a/test/requirements.txt +++ b/test/requirements.txt @@ -2,4 +2,5 @@ polling2 pytest pytest-docker requests -pyyaml \ No newline at end of file +pyyaml +pytest-html \ No newline at end of file