This repository has been archived by the owner on Jul 29, 2023. It is now read-only.
Merge branch 'main' into bsd3 #523
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
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 |