Skip to content

Commit

Permalink
fix hypothesis action (#46)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
OriolAbril authored Apr 12, 2024
1 parent 0479d6e commit 3360057
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/hypothesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ jobs:
python -m pip install ".[test]"
- name: Execute tests
run: |
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
pytest --hypothesis-profile chron -k hypothesis
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
- name: Comment on issue if failed
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: 43
body: |
The extended tests with hypothesis failed.
* Branch: ${{ env.GITHUB_REF }}
* Branch: ${{ github.ref_name }}
* Date: ${{ env.DATE }}
See [workflow logs](https://github.com/arviz-devs/arviz-plots/actions/workflows/hypothesis.yml) for details on which tests failed and why.
See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details on which tests failed and why.

0 comments on commit 3360057

Please sign in to comment.