Skip to content

Commit c05ee03

Browse files
committed
workflows: Add initial GitHub workflows support, with code formatting.
Signed-off-by: Damien George <[email protected]>
1 parent d093a68 commit c05ee03

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/code_formatting.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Check code formatting
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-python@v1
11+
- name: Install packages
12+
run: source tools/ci.sh && ci_code_formatting_setup
13+
- name: Run code formatting
14+
run: source tools/ci.sh && ci_code_formatting_run
15+
- name: Check code formatting
16+
run: git diff --exit-code

0 commit comments

Comments
 (0)