Skip to content

Commit

Permalink
try runner temp
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed May 22, 2024
1 parent a79e77d commit 84ba9f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
- name: Run pytest
id: pytest
run: |
REPORT="$(mktemp)"
REPORT="${{ runner.temp }}/report"
echo "report-path=$REPORT" >> $GITHUB_OUTPUT
pixi run -e ${{ matrix.environment }} pytest -v --emoji
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)"
FINAL_REPORT="${{ runner.temp }}/output"
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"
Expand Down

0 comments on commit 84ba9f5

Please sign in to comment.