You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,6 +85,33 @@ It should have the same structure as the input channel(s).
84
85
### nf-test snapshots
85
86
86
87
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
+
88
90
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