aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/code_formatting.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/code_formatting.yml')
-rw-r--r--.github/workflows/code_formatting.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/code_formatting.yml b/.github/workflows/code_formatting.yml
new file mode 100644
index 000000000..aab347d78
--- /dev/null
+++ b/.github/workflows/code_formatting.yml
@@ -0,0 +1,16 @@
+name: Check code formatting
+
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v1
+ - name: Install packages
+ run: source tools/ci.sh && ci_code_formatting_setup
+ - name: Run code formatting
+ run: source tools/ci.sh && ci_code_formatting_run
+ - name: Check code formatting
+ run: git diff --exit-code