diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..819104d --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,20 @@ +name: flake8 + +on: pull_request + +jobs: + flake8-lint: + runs-on: ubuntu-latest + name: Lint + steps: + - name: Check out source repository + uses: actions/checkout@v2 + - name: Set up Python environment + uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: flake8 Lint + uses: reviewdog/action-flake8@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review diff --git a/tox.ini b/tox.ini index 253097e..6d7a99a 100644 --- a/tox.ini +++ b/tox.ini @@ -6,11 +6,4 @@ setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pipreqs commands = python setup.py test deps = - -r{toxinidir}/requirements.txt - -[testenv:flake8] -basepython = python3.9 -commands = flake8 pipreqs -deps = - -r{toxinidir}/requirements.txt - flake8 + -r{toxinidir}/requirements.txt \ No newline at end of file