Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6485a39

Browse files
Replace fussyfox
1 parent 3d2a647 commit 6485a39

File tree

3 files changed

+47
-8
lines changed

3 files changed

+47
-8
lines changed

‎.fussyfox.yml‎

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

‎.github/workflows/ci.yml‎

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,44 @@ on:
88

99
jobs:
1010

11+
lint:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
lint-command:
16+
- "bandit -r hijack -x hijack/tests"
17+
- "black --check --diff ."
18+
- "flake8 ."
19+
- "isort --check-only --diff ."
20+
- "pydocstyle ."
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/setup-python@v2.2.2
24+
- uses: actions/checkout@v2.3.4
25+
- uses: actions/cache@v2.1.6
26+
with:
27+
path: ~/.cache/pip
28+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29+
restore-keys: |
30+
${{ runner.os }}-pip-
31+
- run: python -m pip install -r requirements.txt
32+
- run: ${{ matrix.lint-command }}
33+
34+
dist:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- run: sudo apt install -y gettext
38+
- uses: actions/setup-python@v2.2.2
39+
- uses: actions/setup-node@v2.4.0
40+
- uses: actions/checkout@v2.3.4
41+
- name: Install Python dependencies
42+
run: python -m pip install --upgrade pip setuptools wheel twine readme-renderer
43+
- run: python setup.py sdist bdist_wheel
44+
- run: python -m twine check dist/*
45+
- uses: actions/upload-artifact@v2
46+
with:
47+
path: dist/*
48+
1149
docs:
1250
runs-on: ubuntu-latest
1351
steps:
@@ -19,7 +57,7 @@ jobs:
1957
- run: python setup.py build_sphinx -W
2058

2159
SQLite:
22-
needs: [docs]
60+
needs: [lint, dist, docs]
2361
runs-on: ubuntu-latest
2462
strategy:
2563
matrix:
@@ -41,7 +79,7 @@ jobs:
4179
codecov
4280
4381
extras:
44-
needs: [docs]
82+
needs: [lint, dist, docs]
4583
runs-on: ubuntu-latest
4684
strategy:
4785
matrix:
@@ -64,7 +102,7 @@ jobs:
64102
65103
66104
PostgreSQL:
67-
needs: [docs]
105+
needs: [lint, dist, docs]
68106
runs-on: ubuntu-latest
69107
strategy:
70108
matrix:

‎requirements.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
Django>=2.2
22
Wagtail>=2.8
3+
bandit==1.7.0
4+
black==21.9b0
5+
flake8==4.0.1
6+
isort==5.9.3
7+
msgcheck==3.1
8+
pydocstyle==6.1.1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /