notebooks #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: notebooks | |
on: | |
schedule: | |
- cron: "0 12 * * MON" # run job every Monday at 7.00a EST | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, "3.10"] | |
steps: | |
- name: Checkout github repo (+ download lfs dependencies) | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup PDM | |
uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
enable-pep582: true | |
cache: true | |
- name: Create environment variables | |
run: echo "BTK_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
# galsim needs this. | |
- name: Instal FFTW | |
run: | | |
sudo apt-get install libfftw3-dev | |
- name: Install python packages | |
run: | | |
pdm install | |
- name: Run notebooks | |
run: | | |
pdm run pytest --nbmake notebooks --ignore "notebooks/01b-scarlet-measure.ipynb" |