-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (29 loc) · 822 Bytes
/
style_check.yml
File metadata and controls
35 lines (29 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Style check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
# Trigger on pull requests.
pull_request:
# Trigger on pushes to the mainline branches. This prevents building commits
# twice when the pull request source branch is in the same repository.
push:
branches:
- "master"
- "maint"
jobs:
pre-commit:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-python@v2.2.2
- uses: pre-commit/action@v2.0.3
with:
extra_args: --all-files --hook-stage manual clang-format
# This job is used to provide a single requirement for branch merge conditions.
checks_complete:
name: Style check
needs: [pre-commit]
runs-on: ubuntu-latest
steps:
- run: echo "Done!"