Skip to content

added known issues in README.md (#35) #26

added known issues in README.md (#35)

added known issues in README.md (#35) #26

name: tests
on:
push:
pull_request:
branches:
- main
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install -r requirements/requirements.txt
pip install -r requirements/development.txt
- name: Lint with flake8
run: |
conda install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 cytoself --count --select=E9,F63,F7,F82, --ignore=E203, --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 cytoself --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./cytoself --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: unittests
verbose: true
project: off
patch: off