Skip to content

Commit

Permalink
try quoted path
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed May 22, 2024
1 parent 78893b1 commit 692afd9
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,28 @@ jobs:
environments: ${{ matrix.environment }}
- name: Install repository
run: pixi run -e ${{ matrix.environment }} postinstall
- name: Run unittests
uses: pavelzw/pytest-action@v2
with:
report-title: Unit tests ${{ matrix.environment }}
custom-pytest: pixi run -e ${{ matrix.environment }} pytest
- name: Run pytest
id: pytest
run: |
REPORT="$(mktemp)"
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="$(mktemp)"
echo "# Unit tests ${{ matrix.environment }}" > "$FINAL_REPORT"
echo "<details><summary>Click to expand!</summary>" >> "$FINAL_REPORT"
tail -n+2 "${{ steps.pytest.outputs.report-path }}" >> "$FINAL_REPORT"
echo "</details>" >> "$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

mypy-type-checks:
name: Mypy Type Checks
Expand Down

0 comments on commit 692afd9

Please sign in to comment.