Skip to content

Commit a268e0c

Browse files
committed
GA: update execution testing for os x to use brew
1 parent 93182cc commit a268e0c

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/execution.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
# UTC 22:00 is early morning in Australia
55
- cron: '0 22 * * *'
66
jobs:
7-
execution-tests-linux-osx:
7+
execution-tests-linux:
88
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: ["ubuntu-latest", "macos-latest"]
13+
os: ["ubuntu-latest"]
1414
python-version: ["3.8"]
1515
steps:
1616
- name: Checkout
@@ -46,6 +46,38 @@ jobs:
4646
with:
4747
name: execution-reports
4848
path: _build/html/reports
49+
execution-tests-osx:
50+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
51+
runs-on: ${{ matrix.os }}
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
os: ["macos-latest"]
56+
python-version: ["3.8"]
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v2
60+
- uses: conda-incubator/setup-miniconda@v2
61+
with:
62+
auto-update-conda: true
63+
python-version: ${{ matrix.python-version }}
64+
- name: Install Anaconda + Dependencies
65+
shell: bash -l {0}
66+
run: |
67+
conda install anaconda
68+
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
69+
- name: Install latex dependencies
70+
run: |
71+
brew install texlive
72+
- name: Build Lectures (+ Execution Checks)
73+
shell: bash -l {0}
74+
run: jb build lectures --path-output=./ -W --keep-going
75+
- name: Upload Execution Reports
76+
uses: actions/upload-artifact@v2
77+
if: failure()
78+
with:
79+
name: execution-reports
80+
path: _build/html/reports
4981
# execution-tests-win:
5082
# name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
5183
# runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)