Skip to content

Commit

Permalink
CI : Add whitespace checks
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Apr 15, 2021
1 parent fb4c399 commit 9460630
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/whitespaceCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Whitespace check
on: [ pull_request ]
jobs:
check:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
with:
# So that we get the branch for `base_ref`.
fetch-depth: 0
- name: Check whitespace
run: |
git -c core.whitespace=indent-with-non-tab,tabwidth=1 diff --check refs/remotes/origin/${{ github.base_ref }} include src python

0 comments on commit 9460630

Please sign in to comment.