-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (39 loc) · 969 Bytes
/
ci_test.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
---
name: GitHub CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
flake8-test:
name: Flake8
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: install flake8
run: pip install flake8
- name: Run flake8
run: flake8
black-test:
name: Black code format
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: install black
run: pip install black==19.10b0
- name: Ensure contributor used ("black ./") before commit
run: black --check ./
json-format-test:
name: JSON file format
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: Ensure contributor used ("python -m tools.format_json") before commit
run: |
python -m tools.format_json --check