Skip to content

Commit bbbc6f6

Browse files
committed
change action to create issue/comment (arviz-devs#44)
1 parent 5a3d81f commit bbbc6f6

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/hypothesis.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/hypothesis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- cron: '17 5 * * 1'
55
workflow_dispatch:
66

7+
permissions:
8+
issues: write
9+
710
jobs:
811
hypothesis_testing:
912
runs-on: ubuntu-latest
@@ -18,13 +21,16 @@ jobs:
1821
python -m pip install ".[test]"
1922
- name: Execute tests
2023
run: |
24+
echo "DATE=$(date +'%Y-%m-%d %H:%M %z')" >> ${GITHUB_ENV}
2125
pytest --hypothesis-profile chron -k hypothesis
22-
- name: Open issue if failed
23-
if: failure()
24-
uses: JasonEtco/create-an-issue@v2
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Comment on issue if failed
27+
uses: peter-evans/create-or-update-comment@v4
2728
with:
28-
filename: .github/hypothesis.md
29-
update_existing: true
30-
search_existing: all
29+
issue-number: 43
30+
body: |
31+
The extended tests with hypothesis failed.
32+
33+
* Branch: ${{ env.GITHUB_REF }}
34+
* Date: ${{ env.DATE }}
35+
36+
See [workflow logs](https://github.com/arviz-devs/arviz-plots/actions/workflows/hypothesis.yml) for details on which tests failed and why.

0 commit comments

Comments
 (0)