mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
gci: Add the JSON report plugin to the ci configuration
This commit is contained in:
committed by
Rusty Russell
parent
ea67710e01
commit
04df500f8e
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@@ -173,6 +173,7 @@ jobs:
|
|||||||
pytest-sentry \
|
pytest-sentry \
|
||||||
pytest-test-groups==1.0.3 \
|
pytest-test-groups==1.0.3 \
|
||||||
pytest-custom-exit-code==0.3.0 \
|
pytest-custom-exit-code==0.3.0 \
|
||||||
|
pytest-json-report \
|
||||||
mypy==0.790
|
mypy==0.790
|
||||||
|
|
||||||
git clone https://github.com/lightningnetwork/lightning-rfc.git ../lightning-rfc
|
git clone https://github.com/lightningnetwork/lightning-rfc.git ../lightning-rfc
|
||||||
@@ -186,7 +187,7 @@ jobs:
|
|||||||
|
|
||||||
cat << 'EOF' > pytest.ini
|
cat << 'EOF' > pytest.ini
|
||||||
[pytest]
|
[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 --junitxml=report.xml
|
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 --json-report --json-report-file=report.json --json-report-indent=2
|
||||||
markers =
|
markers =
|
||||||
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
|
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
|
||||||
EOF
|
EOF
|
||||||
@@ -253,4 +254,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
|
||||||
path: report.xml
|
path: report.*
|
||||||
|
|||||||
Reference in New Issue
Block a user