Skip to content

Commit 8e35a31

Browse files
committed
Use reusable lint workflow
1 parent dbf9141 commit 8e35a31

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,13 @@ name: Tests
33
on:
44
pull_request:
55
push:
6-
branches: [main]
6+
branches: [main, test]
77
merge_group:
88

99
jobs:
1010
pre-commit:
1111
name: Lint
12-
runs-on: ubuntu-24.04
13-
steps:
14-
- name: Cancel Previous Runs
15-
uses: styfle/[email protected]
16-
with:
17-
access_token: ${{ github.token }}
18-
- uses: actions/[email protected]
19-
- uses: actions/[email protected]
20-
with:
21-
python-version: '3.10'
22-
- name: install clang-format
23-
run: |
24-
sudo pip install clang-format==6.0.1
25-
sudo ln -s /usr/local/bin/clang-format /usr/local/bin/clang-format-6.0
26-
- uses: pre-commit/[email protected]
12+
uses: tskit-dev/.github/.github/workflows/lint.yml@v1
2713

2814
test:
2915
name: Python

0 commit comments

Comments
 (0)