Add test report

This commit is contained in:
Albrecht Lohofener
2024-09-21 21:15:20 +02:00
parent a87a5f34ab
commit 28d5dc41a5
2 changed files with 12 additions and 3 deletions
+10 -2
View File
@@ -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
+2 -1
View File
@@ -2,4 +2,5 @@ polling2
pytest
pytest-docker
requests
pyyaml
pyyaml
pytest-html