Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Actions instead of Travis CI
- Loading branch information
Showing
3 changed files
with
45 additions
and
21 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,21 @@ | ||
name: lint_python | ||
on: [pull_request, push] | ||
jobs: | ||
lint_python: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety | ||
- run: bandit --recursive --skip B101,B105,B106,B110,B303,B404,B603 . | ||
- run: black --check . || true | ||
- run: codespell || true # --ignore-words-list="" --skip="" | ||
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
- run: flake8 . --count --exit-zero --max-complexity=29 --max-line-length=167 --show-source --statistics | ||
- run: isort --check-only --profile black . || true | ||
- run: pip install -e . | ||
- run: mypy --ignore-missing-imports . || true | ||
- run: mv setup.cfg setup.cfg.disabled | ||
- run: pytest . | ||
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py || true | ||
- run: safety check |
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,24 @@ | ||
name: tox | ||
on: [push, pull_request] | ||
jobs: | ||
tox: | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
python: [3.6, 3.7, 3.8, 3.9] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- run: pip install tox | ||
- if: matrix.python == '3.6' | ||
run: TOXENV=py36 tox | ||
- if: matrix.python == '3.7' | ||
run: TOXENV=py37 tox | ||
- if: matrix.python == '3.8' | ||
run: TOXENV=py38 tox | ||
- if: matrix.python == '3.9' | ||
run: TOXENV=py39 tox |
This file was deleted.
Oops, something went wrong.