From bb15d7f0429778bcb542a6e509840cbc0fbad4e3 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 21 Jan 2021 19:54:50 +0100 Subject: [PATCH] gci: Upload the junit.xml report Can be used in a second stage to generate stats and detect flaky tests. --- .github/workflows/ci.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 241214461..518961252 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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