mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 16:01:29 +00:00
Add test report
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user