diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index a0f7c0d5..09726d3c 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -1,31 +1,11 @@ name: lint_python -on: - pull_request: - push: - # branches: [master] +on: [pull_request, push] jobs: lint_python: runs-on: ubuntu-latest - # strategy: - # matrix: - # os: [ubuntu-latest, macos-latest, windows-latest] - # python-version: [2.7, 3.5, 3.6, 3.7, 3.8] # , pypy3] steps: - - uses: actions/checkout@master - - uses: actions/setup-python@master - # with: - # python-version: ${{ matrix.python-version }} - - run: pip install black codespell flake8 isort pytest reorder-python-imports - - run: black --check . || true - # - run: black --diff . || true - # - if: matrix.python-version >= 3.6 - # run: | - # pip install black - # black --check . || true + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install codespell flake8 - run: codespell --quiet-level=2 || true # --ignore-words-list="" --skip="" - run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # isort and reorder-python-imports are two ways of doing the same thing - - run: isort --recursive . || true - - run: reorder-python-imports . || true - - run: pip install -r requirements.txt || true - - run: pytest . || true