-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (38 loc) · 1.15 KB
/
verify.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Code quality checks
on:
pull_request:
jobs:
py-scripts-lint:
name: Check for formatting of python scripts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Dependencies
run: npm run setup:python
# Reference: https://black.readthedocs.io/en/stable/integrations/github_actions.html
- name: Check formatting for Python files
uses: psf/black@stable
with:
options: '--check --verbose'
formatting-lint:
name: Check for formatting & lint errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install Dependencies
run: npm run setup:npm
- name: Run Lint Checks
run: |
npm run lint
- run: git diff --exit-code
- name: Error message
if: ${{ failure() }}
run: |
echo 'ESLint check is failing. Please run `npm run lint` on your working copy and commit the changes.'