-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (47 loc) · 1.18 KB
/
test-notebooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
# - windows-latest
# - macos-latest
config:
# - python: '3.8'
# - python: '3.9'
- python: '3.10'
# - python: '3.11'
# - python: '3.12'
steps:
- uses: actions/checkout@v3
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/