File tree Expand file tree Collapse file tree 6 files changed +3210
-16
lines changed
Expand file tree Collapse file tree 6 files changed +3210
-16
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,18 +17,51 @@ jobs:
1717 - run : python setup.py sdist bdist_wheel
1818 - run : python -m twine check dist/*
1919
20- standardJS :
20+ standardjs :
2121 runs-on : ubuntu-latest
2222 steps :
23- - uses : actions/checkout@v2
24- - name : Set up Node
25- uses : actions/setup-node@v1
26- - name : Install Standard
27- run : npm install -g standard
28- - name : Run standard
29- run : standard
23+ - uses : actions/setup-node@v2.1.5
24+ with :
25+ node-version : ' 14.x'
26+ - uses : actions/checkout@v2
27+ - id : cache-npm
28+ uses : actions/cache@v2.1.4
29+ with :
30+ path : ~/.npm
31+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
32+ restore-keys : |
33+ ${{ runner.os }}-node-
34+ - name : Install Node dependencies
35+ run : npm ci
36+ - run : npm run lint:js
37+
38+ lint :
39+ runs-on : ubuntu-latest
40+ strategy :
41+ matrix :
42+ lint-command :
43+ - bandit -r . -x ./tests
44+ - black --check --diff .
45+ - flake8 .
46+ - isort --check-only --diff .
47+ - pydocstyle .
48+ steps :
49+ - uses : actions/setup-python@v2
50+ - uses : actions/checkout@v2
51+ - uses : actions/cache@v2.1.4
52+ with :
53+ path : ~/.cache/pip
54+ key : ${{ runner.os }}-pip-${{ hashFiles('linter-requirements.txt') }}
55+ restore-keys : |
56+ ${{ runner.os }}-pip-
57+ - run : python -m pip install -r linter-requirements.txt
58+ - run : ${{ matrix.lint-command }}
3059
3160 pytest :
61+ needs :
62+ - lint
63+ - standardjs
64+ - dist
3265 runs-on : ubuntu-latest
3366 strategy :
3467 matrix :
Original file line number Diff line number Diff line change 1+ bandit==1.7.0
2+ black==20.8b1
3+ flake8==3.9.0
4+ isort==5.8.0
5+ pydocstyle==6.0.0
You can’t perform that action at this time.
0 commit comments