mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
gci: Upload the junit.xml report
Can be used in a second stage to generate stats and detect flaky tests.
This commit is contained in:
committed by
Rusty Russell
parent
14b64ecc7e
commit
bb15d7f042
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
@@ -184,7 +184,7 @@ jobs:
|
||||
|
||||
cat << 'EOF' > pytest.ini
|
||||
[pytest]
|
||||
addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 --force-flaky --no-success-flaky-report --max-runs=3
|
||||
addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 --force-flaky --no-success-flaky-report --max-runs=3 --junitxml=report.xml
|
||||
markers =
|
||||
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
|
||||
EOF
|
||||
@@ -245,3 +245,10 @@ jobs:
|
||||
eatmydata make -j32
|
||||
eatmydata $TEST_CMD
|
||||
fi
|
||||
|
||||
- name: Upload Unit Test Results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Junit Report ${{ github.run_number }}.${{ job.container.id }}
|
||||
path: report.xml
|
||||
|
||||
Reference in New Issue
Block a user