Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

cleanup utils

cleanup utils #482

Workflow file for this run

name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install coverage
pip install codecov
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
flake8 . --count --select=E9,F7,F82 --extend-exclude ./micro_dl/deprecated/ --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 . --count --extend-exclude ./micro_dl/deprecated/ --max-line-length=127 --exit-zero --max-complexity=10 --statistics
- name: Test with nosetests
run: nosetests -v --with-coverage --cover-package=micro_dl/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: build
name: codecov-umbrella
fail_ci_if_error: true