Skip to content

Commit 2610d68

Browse files
committed
Pre-commit setup from nf-core/website instead of tools
1 parent 8c511be commit 2610d68

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
name: Lint tools code formatting
1+
name: Lint code
22
on:
33
push:
4+
branches:
5+
- main
46
pull_request:
57

6-
# Cancel if a newer run is started
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9-
cancel-in-progress: true
10-
118
jobs:
12-
Pre-commit:
9+
pre-commit:
1310
runs-on: ubuntu-latest
14-
env:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1611
steps:
1712
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18-
19-
- name: Set up Python 3.12
20-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
13+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2114
with:
22-
python-version: "3.12"
23-
cache: "pip"
24-
25-
- name: Install pre-commit
26-
run: pip install pre-commit
27-
28-
- name: Run pre-commit
29-
run: pre-commit run --all-files
15+
node-version: 20
16+
- run: npm install --only=dev
17+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

0 commit comments

Comments
 (0)