Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative GHA structure for nf-core/modules #2

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

adamrtalbot
Copy link
Owner

@adamrtalbot adamrtalbot commented Jul 28, 2023

New GHA set up. This runs the tests in linear so no tests are run unless linting passes etc. The order is:

  1. lint (EditorConfig, Prettier)
  2. Check for changes (pytest)
  3. nf-core lint (based on pytest tags)
  4. pytest

Concurrently with 2, 3 and 4:
2. Check for changes (nf-test)
3. nf-test

I wanted to combine nf-test and pytest into one workflow but I couldn't do it with the existing path filters, this is a future objective. We can possibly add an nf-test tag which includes/excludes but I wasn't able to get it working right now.

@adamrtalbot adamrtalbot marked this pull request as ready for review July 28, 2023 10:05
adamrtalbot and others added 12 commits July 28, 2023 14:45
…red to lint before running. This will help us during hackathons etc when there is a high burden on the GHA runners, but will be slower in general use.

Changes:
 - linting and testing in one GHA file
 - Linting is required to pass before pytest or nf-test runs
 - Check for changes only happens once
adamrtalbot pushed a commit that referenced this pull request Apr 5, 2024
* Added metaphlan subworkflow

* Removed extra index line

* Added config

* Updated meta.yml, removed comments

* Apply suggestions from code review

Co-authored-by: Carson J Miller <[email protected]>

* Updated test snapshot

* Updated test snapshot #2

* Apply suggestions from code review

* Sort output by file name

* Changed sort; modified test dataset used

* Changed sort method to file name

---------

Co-authored-by: Carson J Miller <[email protected]>
Co-authored-by: Maxime U Garcia <[email protected]>
Co-authored-by: Carson J Miller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant