gci: Add the JSON report plugin to the ci configuration

This commit is contained in:
Christian Decker 2021-01-25 13:37:49 +01:00 committed by Rusty Russell
parent ea67710e01
commit 04df500f8e

View file

@ -173,6 +173,7 @@ jobs:
pytest-sentry \
pytest-test-groups==1.0.3 \
pytest-custom-exit-code==0.3.0 \
pytest-json-report \
mypy==0.790
git clone https://github.com/lightningnetwork/lightning-rfc.git ../lightning-rfc
@ -186,7 +187,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 --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 =
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
EOF
@ -253,4 +254,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Junit Report ${{ github.run_number }}.${{ matrix.cfg }}
path: report.xml
path: report.*