-
Notifications
You must be signed in to change notification settings - Fork 1.3k
52 lines (41 loc) · 1.54 KB
/
style-check.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
50
51
52
name: code style checking
# Controls when the action will run.
on:
push:
branches: [ branch-2.0 ]
pull_request:
branches: [ branch-2.0 ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
style-check:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pycodestyle
# Runs a single command using the runners shell
- name: License checking
run: bash python/dev/check-license
- name: Nano style checking
run: bash python/nano/test/run-nano-codestyle-test.sh
env:
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
- name: Dllib style checking
run: bash python/dllib/dev/lint-python
- name: Orca style checking
run: bash python/orca/dev/test/lint-python
- name: Friesian style checking
run: bash python/friesian/dev/test/lint-python
- name: Chronos style checking
run: bash python/chronos/dev/test/lint-python