Skip to content

Commit be001db

Browse files
authored
Set execution tests by platform at different times (#174)
1 parent aa8ac0b commit be001db

File tree

3 files changed

+73
-32
lines changed

3 files changed

+73
-32
lines changed

.github/workflows/execution-linux.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Execution Tests [Latest Anaconda, Linux]
2+
on:
3+
schedule:
4+
# UTC 15:00 is early morning in Australia
5+
- cron: '0 15 * * *'
6+
jobs:
7+
execution-tests-linux:
8+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ["ubuntu-latest"]
14+
python-version: ["3.8"]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- uses: conda-incubator/setup-miniconda@v2
19+
with:
20+
auto-update-conda: true
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install Anaconda + Dependencies
23+
shell: bash -l {0}
24+
run: |
25+
conda install anaconda
26+
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
27+
- name: Build Lectures (+ Execution Checks)
28+
shell: bash -l {0}
29+
run: jb build lectures --path-output=./ -W --keep-going
30+
- name: Upload Execution Reports
31+
uses: actions/upload-artifact@v2
32+
if: failure()
33+
with:
34+
name: execution-reports
35+
path: _build/html/reports

.github/workflows/execution-osx.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Execution Tests [Latest Anaconda, OSX]
2+
on:
3+
schedule:
4+
# UTC 16:00 is early morning in Australia
5+
- cron: '0 16 * * *'
6+
jobs:
7+
execution-tests-osx:
8+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ["macos-latest"]
14+
python-version: ["3.8"]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- uses: conda-incubator/setup-miniconda@v2
19+
with:
20+
auto-update-conda: true
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install Anaconda + Dependencies
23+
shell: bash -l {0}
24+
run: |
25+
conda install anaconda
26+
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
27+
- name: Build Lectures (+ Execution Checks)
28+
shell: bash -l {0}
29+
run: jb build lectures --path-output=./ -W --keep-going
30+
- name: Upload Execution Reports
31+
uses: actions/upload-artifact@v2
32+
if: failure()
33+
with:
34+
name: execution-reports
35+
path: _build/html/reports

.github/workflows/execution.yml renamed to .github/workflows/execution-win.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
1-
name: Run Execution Tests [Latest Anaconda]
1+
name: Execution Tests [Latest Anaconda, Windows]
22
on:
33
schedule:
4-
# UTC 22:00 is early morning in Australia
5-
- cron: '0 22 * * *'
4+
# UTC 17:00 is early morning in Australia
5+
- cron: '0 17 * * *'
66
jobs:
7-
execution-tests-linux-osx:
8-
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
9-
runs-on: ${{ matrix.os }}
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
os: ["ubuntu-latest", "macos-latest"]
14-
python-version: ["3.8"]
15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v2
18-
- uses: conda-incubator/setup-miniconda@v2
19-
with:
20-
auto-update-conda: true
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install Anaconda + Dependencies
23-
shell: bash -l {0}
24-
run: |
25-
conda install anaconda
26-
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
27-
- name: Build Lectures (+ Execution Checks)
28-
shell: bash -l {0}
29-
run: jb build lectures --path-output=./ -W --keep-going
30-
- name: Upload Execution Reports
31-
uses: actions/upload-artifact@v2
32-
if: failure()
33-
with:
34-
name: execution-reports
35-
path: _build/html/reports
367
execution-tests-win:
378
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
389
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)