Skip to content

Commit

Permalink
[GA] enable execution checks for windows, linux, os x (#143)
Browse files Browse the repository at this point in the history
* enable execution checks for windows, linux, os x

* test on PR first

* add interpolation install from conda-forge

* [temp] disable windows testing until executablebooks/MyST-NB#332

* turn of activate on push and set to schedule based testing
  • Loading branch information
mmcky authored Jun 1, 2021
1 parent 75d3d55 commit 928908d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/execution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Run Execution Tests [Latest Anaconda]
on:
schedule:
# UTC 22:00 is early morning in Australia
- cron: '0 22 * * *'
jobs:
execution-tests-linux-osx:
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install Anaconda + Dependencies
shell: bash -l {0}
run: |
conda install anaconda
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
- name: Build Lectures (+ Execution Checks)
shell: bash -l {0}
run: jb build lectures --path-output=./ -W --keep-going
- name: Upload Execution Reports
uses: actions/upload-artifact@v2
if: failure()
with:
name: execution-reports
path: _build/html/reports
# execution-tests-win:
# name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: ["windows-latest"]
# python-version: ["3.8"]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# python-version: ${{ matrix.python-version }}
# - name: Install Anaconda + Dependencies
# shell: powershell
# run: |
# conda install anaconda
# pip install jupyter-book
# pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
# - name: Build Lectures (+ Execution Checks)
# shell: powershell
# run: jb build lectures --path-output=./ -W --keep-going
# - name: Upload Execution Reports
# uses: actions/upload-artifact@v2
# if: failure()
# with:
# name: execution-reports
# path: _build/html/reports
1 change: 1 addition & 0 deletions lectures/navy_captain.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
tags: [hide-output]
---
!conda install -y quantecon
!conda install -y -c conda-forge interpolation
```

```{code-cell} ipython
Expand Down

1 comment on commit 928908d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.