Skip to content

Commit

Permalink
Add step to file issues if tests fails after merging to main (#776)
Browse files Browse the repository at this point in the history
* Add step to file issues if tests fails after merging to main

* Fix typo

* Add issue number to news item
  • Loading branch information
marcoesters authored Apr 23, 2024
1 parent 4ceeb34 commit 7e40c30
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/TEST_FAILURE_REPORT_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "{{ env.TITLE }}"
labels: [type::bug, type::testing]
---

The {{ workflow }} workflow failed on {{ date | date("YYYY-MM-DD HH:mm") }} UTC

Full run: https://github.com/conda/constructor/actions/runs/{{ env.RUN_ID }}

(This post will be updated if another test fails, as long as this issue remains open.)
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ jobs:
run: |
python scripts/make_docs.py
git diff --exit-code
- name: Report failures
if: always() && github.event_name == 'push'
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.CONSTRUCTOR_ISSUES }}
RUN_ID: ${{ github.run_id }}
TITLE: "Constructor tests failed"
with:
filename: .github/TEST_FAILURE_REPORT_TEMPLATE.md
update_existing: true
- name: Upload the example installers as artifacts
if: github.event_name == 'pull_request' && matrix.python-version == '3.9'
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* Automatically create issues when tests fail after pushing to main or creating tags. (#775 via #776)

0 comments on commit 7e40c30

Please sign in to comment.