D2L book Notebook Canary tests #847
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: D2L book Notebook Canary tests | |
on: | |
# sync weekly | |
schedule: | |
- cron: '0 9 * * *' | |
workflow_dispatch: | |
jobs: | |
canary-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: 11 | |
- uses: actions/checkout@v3 | |
- name: Set up Python3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install IJava kernel | |
run: | | |
pip3 install jupyter | |
git clone https://github.com/frankfliu/IJava.git | |
cd IJava | |
./gradlew installKernel --python python | |
- name: Run canary tests | |
run: | | |
cd chapter_multilayer-perceptrons | |
jupyter nbconvert --to html --execute --ExecutePreprocessor.timeout=2000 mlp.ipynb |