forked from cabotage/cabotage-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lint, security/type checks to use docker
- Loading branch information
1 parent
05090a5
commit 228f68d
Showing
11 changed files
with
171 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
- pull_request | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.11] | ||
include: | ||
- name: Lint | ||
command: make lint | ||
- name: Reformat | ||
command: make reformat | ||
- name: Type-Check | ||
command: make type-check | ||
- name: Security-Check | ||
command: make security-check | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-ignore-env-name-mismatch | ||
pip install -r requirements.txt | ||
- name: Run lint | ||
run: tox -e lint | ||
|
||
- name: Run reformat | ||
run: tox -e reformat | ||
|
||
- name: Run type-check | ||
run: tox -e type-check | ||
|
||
- name: Run security-check | ||
run: tox -e security-check | ||
pip install -r requirements/dev.txt | ||
- name: Run ${{ matrix.name }} | ||
run: ${{ matrix.command }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[tool.bandit] | ||
exclude_dirs = ["bin", "lib"] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true |
Oops, something went wrong.