Update .readthedocs.yml #288
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: Running tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Search for severe code errors with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
pip install flake8 | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --max-line-length=127 | |
- name: provision-with-micromamba | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
environment-file: environment.yml | |
environment-name: nidn | |
cache-downloads: true | |
- name: Test with pytest | |
shell: bash -l {0} | |
run: | | |
micromamba activate nidn | |
micromamba install pytest | |
pytest |