diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 255eade80..e75bdabcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} + - name: Install Git + shell: bash -l {0} + run: apt-get -qq update && apt-get install -y git # Install LaTeX (Support for matplotlib and PDF builds) - name: Install latex dependencies shell: bash -l {0} @@ -62,52 +65,39 @@ jobs: run: | pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - - name: Install latex dependencies - shell: bash -l {0} - run: | - apt-get -qq update - export DEBIAN_FRONTEND=noninteractive - apt-get install -y tzdata - apt-get install -y \ - texlive-latex-recommended \ - texlive-latex-extra \ - texlive-fonts-recommended \ - texlive-fonts-extra \ - texlive-xetex \ - latexmk \ - xindy - name: Display Conda Environment Versions shell: bash -l {0} run: conda list - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 - with: - workflow: cache.yml - branch: main - name: build-cache - path: _build + # Download Build Cache + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: cache.yml + # branch: main + # name: build-cache + # path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - - name: Build Download Notebooks (sphinx-tojupyter) - shell: bash -l {0} - run: | - jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going - mkdir -p _build/html/_notebooks - cp -u _build/jupyter/*.ipynb _build/html/_notebooks - - name: Build PDF from LaTeX - shell: bash -l {0} - run: | - jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going - mkdir _build/html/_pdf - cp -u _build/latex/*.pdf _build/html/_pdf - - name: Upload Execution Reports (LaTeX) - uses: actions/upload-artifact@v2 - if: failure() - with: - name: execution-reports - path: _build/latex/reports + # - name: Build Download Notebooks (sphinx-tojupyter) + # shell: bash -l {0} + # run: | + # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going + # mkdir -p _build/html/_notebooks + # cp -u _build/jupyter/*.ipynb _build/html/_notebooks + # - name: Build PDF from LaTeX + # shell: bash -l {0} + # run: | + # jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going + # mkdir _build/html/_pdf + # cp -u _build/latex/*.pdf _build/html/_pdf + # - name: Upload Execution Reports (LaTeX) + # uses: actions/upload-artifact@v2 + # if: failure() + # with: + # name: execution-reports + # path: _build/latex/reports # Final Build of HTML - name: Build HTML shell: bash -l {0} diff --git a/environment.yml b/environment.yml index cd42d632b..86de4d5df 100644 --- a/environment.yml +++ b/environment.yml @@ -17,7 +17,7 @@ dependencies: - arviz==0.13.0 - kaleido # Sandpit Requirements - - quantecon + - git+https://github.com/quantecon/QuantEcon.py - array-to-latex - PuLP - cvxpy