Skip to content

Commit b73cdf7

Browse files
committed
Use reusable lint workflow
1 parent f1757db commit b73cdf7

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,7 @@ on:
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.12'
22-
- name: install clang-format
23-
if: steps.clang_format.outputs.cache-hit != 'true'
24-
run: |
25-
pip install setuptools clang-format==6.0.1
26-
clang-format -version
27-
sudo cp /opt/hostedtoolcache/Python/3.12.11/x64/bin/clang-format /opt/hostedtoolcache/Python/3.12.11/x64/bin/clang-format-6.0
28-
clang-format-6.0 -version
29-
- uses: pre-commit/[email protected]
12+
uses: tskit-dev/.github/.github/workflows/lint.yml@v1
3013

3114
test:
3215
name: Python

0 commit comments

Comments
 (0)