Skip to content

Commit d25b05d

Browse files
committed
Drop FussyFox in favor of GitHub actions
1 parent 35057eb commit d25b05d

File tree

6 files changed

+3210
-16
lines changed

6 files changed

+3210
-16
lines changed

.bandit

Lines changed: 0 additions & 2 deletions
This file was deleted.

.fussyfox.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff 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/[email protected]
24+
with:
25+
node-version: '14.x'
26+
- uses: actions/checkout@v2
27+
- id: cache-npm
28+
uses: actions/[email protected]
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/[email protected]
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:

linter-requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bandit==1.7.0
2+
black==20.8b1
3+
flake8==3.9.0
4+
isort==5.8.0
5+
pydocstyle==6.0.0

0 commit comments

Comments
 (0)