Skip to content

Merge pull request #90 from zonca/tophat #125

Merge pull request #90 from zonca/tophat

Merge pull request #90 from zonca/tophat #125

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ci/github-actions-environment.yml
cache-env: true
extra-specs: |
python=${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0} # needed by conda
run: |
pip install ".[test]"
- name: Test with pytest
shell: bash -l {0} # needed by conda
env:
DISABLE_MPI: TRUE
run: |
pytest -v
- name: Test notebooks
shell: bash -l {0} # needed by conda
env:
DISABLE_MPI: TRUE
run: |
bash run_notebook_tests.sh