From 26dadb1187f7490ac3effca64428d51afd9c74c9 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Wed, 22 Nov 2023 04:01:09 -0600 Subject: [PATCH] Add call to action comment on pytest-workflow runs (#4151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: Add comment if pytest-workflow tests run * Update wording Co-authored-by: Adam Talbot <12817534+adamrtalbot@users.noreply.github.com> * Update .github/workflows/test.yml --------- Co-authored-by: Adam Talbot <12817534+adamrtalbot@users.noreply.github.com> Co-authored-by: Matthias Hörtenhuber --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd435cd4eff..75589719b20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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.