|
| 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: |
| 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.9"] |
| 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 sphinx-exercise |
| 27 | + - name: Install latex dependencies |
| 28 | + run: | |
| 29 | + sudo apt-get -qq update |
| 30 | + sudo apt-get install -y \ |
| 31 | + texlive-latex-recommended \ |
| 32 | + texlive-latex-extra \ |
| 33 | + texlive-fonts-recommended \ |
| 34 | + texlive-fonts-extra \ |
| 35 | + texlive-xetex \ |
| 36 | + latexmk \ |
| 37 | + xindy \ |
| 38 | + dvipng \ |
| 39 | + cm-super |
| 40 | + - name: Build Lectures (+ Execution Checks) |
| 41 | + shell: bash -l {0} |
| 42 | + run: jb build lectures --path-output=./ -W --keep-going |
| 43 | + - name: Upload Execution Reports |
| 44 | + uses: actions/upload-artifact@v2 |
| 45 | + if: failure() |
| 46 | + with: |
| 47 | + name: execution-reports |
| 48 | + 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 sphinx-exercise |
| 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 |
| 81 | + # execution-tests-win: |
| 82 | + # name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }}) |
| 83 | + # runs-on: ${{ matrix.os }} |
| 84 | + # strategy: |
| 85 | + # fail-fast: false |
| 86 | + # matrix: |
| 87 | + # os: ["windows-latest"] |
| 88 | + # python-version: ["3.8"] |
| 89 | + # steps: |
| 90 | + # - name: Checkout |
| 91 | + # uses: actions/checkout@v2 |
| 92 | + # - uses: conda-incubator/setup-miniconda@v2 |
| 93 | + # with: |
| 94 | + # auto-update-conda: true |
| 95 | + # python-version: ${{ matrix.python-version }} |
| 96 | + # - name: Install Anaconda + Dependencies |
| 97 | + # shell: powershell |
| 98 | + # run: | |
| 99 | + # conda install anaconda |
| 100 | + # pip install jupyter-book |
| 101 | + # pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter |
| 102 | + # - name: Build Lectures (+ Execution Checks) |
| 103 | + # shell: powershell |
| 104 | + # run: jb build lectures --path-output=./ -W --keep-going |
| 105 | + # - name: Upload Execution Reports |
| 106 | + # uses: actions/upload-artifact@v2 |
| 107 | + # if: failure() |
| 108 | + # with: |
| 109 | + # name: execution-reports |
| 110 | + # path: _build/html/reports |
0 commit comments