@@ -11,54 +11,50 @@ jobs:
1111 pre-commit :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
14+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1515
16- - name : Set up Python 3.14
17- uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
18- with :
19- python-version : " 3.14"
20-
21- - name : Install pre-commit
22- run : pip install pre-commit
16+ - name : Install Nextflow
17+ uses : nf-core/setup-nextflow@b4ec1bc7c16a94435159de94a05253542fddf6ef # v3
2318
24- - name : Run pre-commit
25- run : pre-commit run --all-files
19+ - name : Run prek
20+ uses : j178/prek-action@6ad80277337ad479fe43bd70701c3f7f8aa74db3 # v2
2621
2722 nf-core :
2823 runs-on : ubuntu-latest
2924 steps :
3025 - name : Check out pipeline code
31- uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
26+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3227
3328 - name : Install Nextflow
34- uses : nf-core/setup-nextflow@v2
29+ uses : nf-core/setup-nextflow@b4ec1bc7c16a94435159de94a05253542fddf6ef # v3
3530
36- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
31+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
3732 with :
3833 python-version : " 3.14"
3934 architecture : " x64"
4035
36+ - name : Setup uv
37+ uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
38+
4139 - name : read .nf-core.yml
4240 uses : pietrobolcato/action-read-yaml@9f13718d61111b69f30ab4ac683e67a56d254e1d # 1.1.0
4341 id : read_yml
4442 with :
4543 config : ${{ github.workspace }}/.nf-core.yml
4644
4745 - name : Install dependencies
48- run : |
49- python -m pip install --upgrade pip
50- pip install nf-core==${{ steps.read_yml.outputs['nf_core_version'] }}
46+ run : uv tool install nf-core==${{ steps.read_yml.outputs['nf_core_version'] }}
5147
5248 - name : Run nf-core pipelines lint
53- if : ${{ github.base_ref != 'master' }}
49+ if : ${{ github.base_ref != 'master' || github.base_ref != 'main' }}
5450 env :
5551 GITHUB_COMMENTS_URL : ${{ github.event.pull_request.comments_url }}
5652 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5753 GITHUB_PR_COMMIT : ${{ github.event.pull_request.head.sha }}
5854 run : nf-core -l lint_log.txt pipelines lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md
5955
6056 - name : Run nf-core pipelines lint --release
61- if : ${{ github.base_ref == 'master' }}
57+ if : ${{ github.base_ref == 'master' || github.base_ref == 'main' }}
6258 env :
6359 GITHUB_COMMENTS_URL : ${{ github.event.pull_request.comments_url }}
6460 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7167
7268 - name : Upload linting log file artifact
7369 if : ${{ always() }}
74- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
70+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
7571 with :
7672 name : linting-logs
7773 path : |
0 commit comments