Skip to content

Commit 26653c8

Browse files
committed
ci: Lint everything
1 parent ddc15f6 commit 26653c8

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,11 @@ jobs:
7070
- name: Run ECLint check
7171
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
7272

73-
# FIXME Lint everything?
7473
nf-core-lint-modules:
7574
runs-on: ${{ github.event.inputs.runners || 'self-hosted' }}
76-
name: nf-core-lint-modules
77-
needs: [pytest-changes, nf-test-changes]
78-
if: ${{ (needs.pytest-changes.outputs.modules != '[]') || ( needs.nf-test-changes.outputs.modules != '[]') }}
75+
name: nf-core lint modules
7976
strategy:
8077
fail-fast: false
81-
matrix:
82-
tags:
83-
[
84-
"${{ fromJson(needs.pytest-changes.outputs.modules) }}",
85-
"${{ fromJson(needs.nf-test-changes.outputs.modules) }}",
86-
]
8778
steps:
8879
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
8980

@@ -114,23 +105,12 @@ jobs:
114105
- name: Install nf-core tools development version
115106
run: python -m pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev
116107

117-
- name: Lint module ${{ matrix.tags }}
118-
run: nf-core modules lint ${{ matrix.tags }}
108+
- name: Lint modules
109+
run: nf-core modules lint -a
119110

120-
# FIXME Lint everything?
121111
nf-core-lint-subworkflows:
122112
runs-on: ubuntu-latest
123-
name: nf-core-lint-modules
124-
needs: [pytest-changes, nf-test-changes]
125-
if: ${{ (needs.pytest-changes.outputs.subworkflows != '[]') || ( needs.nf-test-changes.outputs.subworkflows != '[]') }}
126-
strategy:
127-
fail-fast: false
128-
matrix:
129-
tags:
130-
[
131-
"${{ fromJson(needs.pytest-changes.outputs.subworkflows) }}",
132-
"${{ fromJson(needs.nf-test-changes.outputs.subworkflows) }}",
133-
]
113+
name: nf-core lint subworkflows
134114
steps:
135115
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
136116

@@ -153,5 +133,5 @@ jobs:
153133
- name: Install nf-core tools development version
154134
run: python -m pip install --upgrade --force-reinstall git+https://github.com/nf-core/tools.git@dev
155135

156-
- name: Lint module ${{ matrix.tags }}
157-
run: nf-core subworkflows lint ${{ matrix.tags }}
136+
- name: Lint subworkflows
137+
run: nf-core subworkflows lint -a

.github/workflows/pytest-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run tests
1+
name: Run pytest-workflow
22
on:
33
pull_request:
44
branches: [master]

0 commit comments

Comments
 (0)