-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5bdc89
commit 2b0ca33
Showing
1 changed file
with
50 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: main_workflow | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
pull_request: | ||
jobs: | ||
linter_checks: | ||
continue-on-error: False | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.10.9"] | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@master | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.17.7" | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update --fix-missing | ||
sudo apt-get autoremove | ||
sudo apt-get autoclean | ||
pip install tomte[tox]==0.2.15 | ||
pip install --user --upgrade setuptools | ||
sudo npm install -g markdown-spellcheck | ||
- name: Security checks | ||
run: | | ||
tox -p -e bandit -e safety | ||
- name: Code style check | ||
run: | | ||
tox -p -e black-check -e isort-check | ||
- name: Flake7 | ||
run: | | ||
tox -e flake8 | ||
- name: Pylint | ||
run: tox -e pylint | ||
- name: Static type check | ||
run: tox -e mypy | ||
# - name: Check spelling | ||
# run: tox -e spell-check | ||
# - name: License compatibility check | ||
# run: tox -e liccheck | ||
# tox -p -e vulture -e darglint |