Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Jul 6, 2021
1 parent a90d65b commit 5666d66
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 21 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint-python.yml
@@ -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
24 changes: 24 additions & 0 deletions .github/workflows/tox.yml
@@ -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
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

0 comments on commit 5666d66

Please sign in to comment.