New plots #248
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: unittests | |
on: | |
pull_request: | |
push: | |
branches: master | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
python: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
channels: conda-forge | |
- name: Installations | |
run: | | |
conda --version | |
which python | |
python setup.py install | |
pip install flake8 check-manifest | |
pip install pytest coverage pytest-sugar | |
- name: Run Python unit tests | |
run: | | |
pytest bsi_zoo | |
flake8 --count bsi_zoo | |
- name: Upload coverage | |
run: | | |
bash <(curl -s https://codecov.io/bash) |