|
| 1 | +name: Run Execution Tests [Latest Anaconda] |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + # UTC 22:00 is early morning in Australia |
| 5 | + - cron: '0 22 * * *' |
| 6 | +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 |
| 36 | + # execution-tests-win: |
| 37 | + # name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }}) |
| 38 | + # runs-on: ${{ matrix.os }} |
| 39 | + # strategy: |
| 40 | + # fail-fast: false |
| 41 | + # matrix: |
| 42 | + # os: ["windows-latest"] |
| 43 | + # python-version: ["3.8"] |
| 44 | + # steps: |
| 45 | + # - name: Checkout |
| 46 | + # uses: actions/checkout@v2 |
| 47 | + # - uses: conda-incubator/setup-miniconda@v2 |
| 48 | + # with: |
| 49 | + # auto-update-conda: true |
| 50 | + # python-version: ${{ matrix.python-version }} |
| 51 | + # - name: Install Anaconda + Dependencies |
| 52 | + # shell: powershell |
| 53 | + # run: | |
| 54 | + # conda install anaconda |
| 55 | + # pip install jupyter-book |
| 56 | + # pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter |
| 57 | + # - name: Build Lectures (+ Execution Checks) |
| 58 | + # shell: powershell |
| 59 | + # run: jb build lectures --path-output=./ -W --keep-going |
| 60 | + # - name: Upload Execution Reports |
| 61 | + # uses: actions/upload-artifact@v2 |
| 62 | + # if: failure() |
| 63 | + # with: |
| 64 | + # name: execution-reports |
| 65 | + # path: _build/html/reports |
0 commit comments