From 2978157fe6aa9aee9cd92458f5dff14f9ab5cfa1 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sat, 14 Sep 2024 10:59:39 -0400 Subject: [PATCH] Dump junit XMLs from tests --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 160c67db..c32f9da1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,9 @@ jobs: - run: python -m pip install --upgrade wheel "poetry==1.4.0" poethepoet - run: poetry install --with pydantic --with dsl --with encryption - run: poe lint - - run: poe test -s -o log_cli_level=DEBUG - - run: poe test -s -o log_cli_level=DEBUG --workflow-environment time-skipping + - run: mkdir junit-xml + - run: poe test -s -o log_cli_level=DEBUG --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml + - run: poe test -s -o log_cli_level=DEBUG --workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml # On latest, run gevent test - name: Gevent test @@ -51,4 +52,10 @@ jobs: poetry install --with gevent poetry run python gevent_async/test/run_combined.py - + - name: Upload junit-xml artifacts + uses: actions/upload-artifact@v4 + if: always() + with: + name: junit-xml--${{github.run_id}}--${{github.run_attempt}}--${{ matrix.python }}--${{ matrix.os }} + path: junit-xml + retention-days: 14