Bump jinja2 from 3.0.0 to 3.1.3 in /docs #119
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9.17 | |
- uses: s-weigand/setup-conda@v1 | |
with: | |
activate-conda: true | |
python-version: 3.9 | |
- run: conda --version | |
- run: which python | |
- name: Run installation. | |
run: | | |
conda install -y scipy | |
conda install Cython | |
pip install codecov | |
pip install pytest | |
pip install tox | |
pip install nbconvert | |
pip install markupsafe==2.0.1 | |
pip install -r requirements.txt | |
- name: Run code quality tests | |
run: | | |
tox -e flake8 | |
- name: Run type checking | |
run: | | |
tox -e mypy | |
- name: Install main package | |
run: | | |
pip install -e .[test] | |
- name: Run test-suite | |
run: | | |
python -m pytest | |
- name: Generate coverage report | |
if: success() | |
run: | | |
pip install coverage | |
coverage run -m pytest | |
coverage xml | |
- name: Upload coverage report to codecov | |
uses: codecov/codecov-action@v1 | |
if: success() | |
with: | |
file: coverage.xml |