Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
8 changes: 1 addition & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down