From 8e14da0207134b6d2666d011a5eb612cc57b0c2c Mon Sep 17 00:00:00 2001 From: Bela Stoyan Date: Wed, 22 May 2024 22:36:22 +0200 Subject: [PATCH] fixed upstream --- .github/workflows/ci.yml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ef5a73..69b80bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,28 +34,11 @@ jobs: environments: ${{ matrix.environment }} - name: Install repository run: pixi run -e ${{ matrix.environment }} postinstall - - name: Run pytest - id: pytest - run: | - REPORT="${{ runner.temp }}/report" - echo "report-path=$REPORT" >> $GITHUB_OUTPUT - pixi run -e ${{ matrix.environment }} pytest -v --md=$REPORT --emoji - shell: bash -el {0} # use login shell to source .bashrc for environments - - name: Add report to summary - run: | - echo "::group::..." - FINAL_REPORT="${{ runner.temp }}/output" - echo "# Unit tests ${{ matrix.environment }}" > "$FINAL_REPORT" - echo "
Click to expand!" >> "$FINAL_REPORT" - tail -n+2 "${{ steps.pytest.outputs.report-path }}" >> "$FINAL_REPORT" - echo "
" >> "$FINAL_REPORT" - cat "$FINAL_REPORT" >> "$GITHUB_STEP_SUMMARY" - echo "::endgroup::" - echo - echo "=====================================================================================" - echo Markdown summaries: "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" - echo "=====================================================================================" - shell: bash + - name: Run unittests + uses: quantco/pytest-action@v2 + with: + report-title: Unit tests ${{ matrix.environment }} + custom-pytest: pixi run -e ${{ matrix.environment }} pytest mypy-type-checks: name: Mypy Type Checks