Skip to content

Commit b07ecdf

Browse files
authored
Merge pull request #54 from mirpedrol/readme
update readme specifying automation in the repo
2 parents f7e5113 + 9fff416 commit b07ecdf

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- name: Install nf-class
9494
run: pip install git+https://github.com/mirpedrol/nf-class.git@dev
9595
- name: Lint subworkflow ${{ matrix.tags }} nf-core
96-
run: nf-class subworkflows lint ${{ matrix.tags }}
96+
run: nf-core subworkflows lint ${{ matrix.tags }}
9797
continue-on-error: true
9898

9999
- name: Lint subworkflow ${{ matrix.tags }} nf-class

README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ A repository for hosting curated [Nextflow DSL2](https://www.nextflow.io/docs/la
1919

2020
- [Using nf-core/tools](#using-nf-coretools)
2121
- [Classes of modules](#classes-of-modules)
22-
- [The class_module_index file](#the-class-module-index-file)
22+
- [nf-test snapshots](#nf-test-snapshots)
23+
- [Automation](#automation)
2324

2425
## Using nf-core/tools
2526

@@ -84,6 +85,33 @@ It should have the same structure as the input channel(s).
8485
### nf-test snapshots
8586

8687
When a subworkflow is created with nf-class `nf-class subworkflows expand-class`, nf-test are craeted, generating a `main.nf.test` file.
87-
The snapshots are not generated, since the subworkflow needs to be installed into a pipeline, with all the corresponding modules, and run in order to generate the snapshot.
88+
The snapshots are **not generated**, since the subworkflow needs to be installed into a pipeline, with all the corresponding modules, and run in order to generate the snapshot.
89+
8890
To ease the snapshot generation process, the GHA which runs the tests will generate the snapshots the first time it's run (or update them if they exist).
89-
These snapshots are uploaded as an artifact, and can be downloaded to copy then to the working branch, and pushed to the PR.
91+
These snapshots are uploaded as an artifact, and can be downloaded to copy them to the working branch, and pushed to the PR. **This step must be done manually.**
92+
93+
## Automation
94+
95+
In this repository, there are several automated actions to help with the maintenance of classes.
96+
97+
- Testing
98+
99+
All subworkflows are tested with nf-test.
100+
101+
To achieve this, a test pipeline is created with nf-core.
102+
Then, the subworkflow is installed in the pipeline, this will also install all the required nf-core modules.
103+
This subworkflow is tested with nf-test.
104+
105+
Please refer to the [nf-test snapshots](#nf-test-snapshots) section for a description on how the nf-test snapshots can generated.
106+
107+
- Linting
108+
109+
All subworkflows are linted with nf-core to ensure that they follow the nf-core standards.
110+
111+
All subworkflows are linted with nf-class to ensure that they follow nf-class standards.
112+
113+
- Adding new modules to a class
114+
115+
When a new module is added to a class under the `components` section,
116+
an action will update the corresponding subworkflow, adding the new nf-core module and updating the tests.
117+
A new commit will be automatically generated to the PR.

0 commit comments

Comments
 (0)