-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run notebooks once a week in a separate workflow (#263)
* Add progress bar * add description * new cron job for notebooks * update other workflows * remove push * forgot to remove notebooks in test.yml * use nbval-lax * clarify comment in new job * not sure why tqdm change was here * undo sanitize change * ignore nbval warning * fix warning Co-authored-by: thuiop <[email protected]>
- Loading branch information
1 parent
36e9a71
commit 005665a
Showing
5 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: notebooks | ||
|
||
on: | ||
schedule: | ||
- cron: "0 12 * * MON" # run job every Monday at 7.00a EST | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8] | ||
|
||
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: Install Poetry | ||
run: | | ||
pip install --upgrade pip | ||
pip install poetry==1.1.11 | ||
- name: Create environment variables | ||
run: echo "BTK_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
|
||
- name: Poetry cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pypoetry | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('./poetry.lock') }} | ||
|
||
# galsim needs this. | ||
- name: Instal FFTW | ||
run: | | ||
sudo apt-get install libfftw3-dev | ||
- name: Install poetry dependencies | ||
run: | | ||
poetry run pip install Cython | ||
poetry install --extras "scarlet" | ||
poetry run pip install git+https://github.com/pmelchior/scarlet | ||
- name: Run notebooks | ||
run: | | ||
poetry run pytest --nbval notebooks --sanitize-with tests/sanitize.cfg --ignore "notebooks/01b-scarlet-measure.ipynb" |
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
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