Skip to content

Merge pull request #74 from glotzerlab/pre-commit-ci-update-config #46

Merge pull request #74 from glotzerlab/pre-commit-ci-update-config

Merge pull request #74 from glotzerlab/pre-commit-ci-update-config #46

name: Notebook Tests
on:
# trigger on pull requests
pull_request:
# trigger on all commits to main
push:
branches:
- 'main'
# trigger on request
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
config:
- python: '3.12'
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Create Python Environment
uses: conda-incubator/[email protected]
with:
python-version: ${{ matrix.config.python }}
environment-file: environment.yml
activate-environment: test
channels: conda-forge
show-channel-urls: true
miniforge-version: latest
use-mamba: true
- name: Test notebooks
shell: bash -el {0} # Required for conda activation
run: |
python -m pytest -v --nbval --nbval-lax notebooks/