Skip to content

Commit

Permalink
Add call to action comment on pytest-workflow runs (nf-core#4151)
Browse files Browse the repository at this point in the history
* ci: Add comment if pytest-workflow tests run

* Update wording

Co-authored-by: Adam Talbot <[email protected]>

* Update .github/workflows/test.yml

---------

Co-authored-by: Adam Talbot <[email protected]>
Co-authored-by: Matthias Hörtenhuber <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2023
1 parent 38e8c36 commit 26dadb1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,18 @@ jobs:
SENTIEON_AUTH_DATA_BASE64=$(echo -n "$SENTIEON_AUTH_DATA" | base64 -w 0)
nextflow secrets set SENTIEON_AUTH_DATA_BASE64 $SENTIEON_AUTH_DATA_BASE64
- name: Deprecation Comment
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Hello! We're in the process of migrating to [nf-test](https://code.askimed.com/nf-test)!🚀
We would appreciate this test being rewritten in nf-test. We have documented a step-by-step process to do so [here](https://nf-co.re/docs/contributing/modules#migrating-from-pytest-to-nf-test). If you aren't able to do that right now [raise an issue](https://github.com/nf-core/modules/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml).
})
# Test the module
- name: Run pytest-workflow
# only use one thread for pytest-workflow to avoid race condition on conda cache.
Expand Down

0 comments on commit 26dadb1

Please sign in to comment.