-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (39 loc) · 1.2 KB
/
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
name: notebooks
on:
schedule:
- cron: "0 12 * * MON" # run job every Monday at 7.00a EST
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11"]
steps:
- name: Checkout github repo (+ download lfs dependencies)
uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
# galsim needs this.
- name: Install FFTW
run: |
sudo apt-get install libfftw3-dev
- name: Install poetry dependencies
run: |
poetry install --with scarlet
- name: Install Scarlet
run: |
poetry run pip install "pybind11[global]" peigen pybind11
git clone https://github.com/pmelchior/scarlet.git; cd scarlet; poetry run python setup.py install
# just checks if they run
- name: Run notebooks
run: |
poetry run pytest --nbmake notebooks --ignore notebooks/02-advanced-plots.ipynb