Skip to content

Commit 9b35f5f

Browse files
committed
Add formatting CI job
1 parent 3bb1832 commit 9b35f5f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/format.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a format job. Pre-commit has a first-party GitHub action, so we use
2+
# that: https://github.com/pre-commit/action
3+
4+
name: Formatting (pre-commit)
5+
6+
on:
7+
workflow_dispatch:
8+
pull_request:
9+
merge_group:
10+
push:
11+
branches:
12+
- main
13+
14+
jobs:
15+
pre-commit:
16+
name: Format
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: '3.10'
23+
- name: Install clang-format-14
24+
run: sudo apt-get install clang-format-14
25+
- uses: pre-commit/[email protected]
26+
id: precommit

0 commit comments

Comments
 (0)