diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 4c8d04b8a9..ca94204a2a 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -1,12 +1,10 @@ -name: Python application +name: Lint on: [push] jobs: - build: - + flake8-py3: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v1 - name: Set up Python 3.7 @@ -21,10 +19,5 @@ jobs: run: | pip install flake8 pip install pep8-naming - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. + flake8 --version flake8 . --count --statistics - - name: Test and coverage - run: | - ./runtests.sh --coverage diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1e4d6877c..e67b451e33 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,7 @@ stages: - python -m pip install --upgrade pip - pip uninstall -y torch torchvision - pip install -r requirements.txt - - pip list - - pip install flake8 - - pip install pep8-naming - # stop the build if there are Python syntax errors or undefined names - # - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --config ./.flake8 - # exit-zero treats all errors as warnings. - - flake8 . --count --statistics --config ./.flake8 + # - pip list - ./runtests.sh --net - echo "Done with runtests.sh"