-
Notifications
You must be signed in to change notification settings - Fork 38
57 lines (48 loc) · 1.28 KB
/
test_workbooks.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
52
53
54
55
56
57
name: Test documentation notebooks
on:
schedule:
- cron: '15 6 * * 1' # Run every Monday at 6:15am
workflow_dispatch:
workflow: "*"
push:
pull_request:
branches: [master]
env:
MPLBACKEND: agg
jobs:
test-workbooks:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
PYXEM_VERSION: ['release', 'development']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pyxem (release)
if: contains(matrix.PYXEM_VERSION, 'release')
shell: bash
run: |
pip install pyxem
- name: Install pyxem (development)
if: contains(matrix.PYXEM_VERSION, 'development')
shell: bash
run: |
pip install "pyxem @ git+https://github.com/pyxem/pyxem.git"
- name: Install other libraries
shell: bash
run: |
pip install -U nbval pyopencl
pip install nb-clean
pip install hyperspy[gui-jupyter]
- name: Display Python, pip and package versions
run: |
python -V
pip -V
pip list
- name: Test documentation notebooks
run: ./run_nbval.sh