Skip to content

Commit 3360057

Browse files
authored
fix hypothesis action (#46)
* add condition to run if testing failed * try fixing branch name * try adding a more specific link to action logs * switch pytest-store_date command order
1 parent 0479d6e commit 3360057

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/hypothesis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
python -m pip install ".[test]"
2222
- name: Execute tests
2323
run: |
24-
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
2524
pytest --hypothesis-profile chron -k hypothesis
25+
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
2626
- name: Comment on issue if failed
27+
if: failure()
2728
uses: peter-evans/create-or-update-comment@v4
2829
with:
2930
issue-number: 43
3031
body: |
3132
The extended tests with hypothesis failed.
3233
33-
* Branch: ${{ env.GITHUB_REF }}
34+
* Branch: ${{ github.ref_name }}
3435
* Date: ${{ env.DATE }}
3536
36-
See [workflow logs](https://github.com/arviz-devs/arviz-plots/actions/workflows/hypothesis.yml) for details on which tests failed and why.
37+
See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details on which tests failed and why.

0 commit comments

Comments
 (0)