Tests #287
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: tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- 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: | | |
conda install flake8 | |
- name: Lint with flake8 | |
run: | | |
flake8 . \ | |
--count \ | |
--show-source \ | |
--max-line-length=71 \ | |
--statistics | |
pytest-stable-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- 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: | | |
conda env update \ | |
--name base \ | |
--file tests/environment.yml | |
- name: Run pytest | |
run: | | |
pytest |