Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:
jobs:
cache:
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/disk=large"
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/volume=80gb/spot=false"
steps:
- uses: actions/checkout@v6
with:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Build Project [using jupyter-book]
on: [pull_request]
jobs:
preview:
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/disk=large"
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/volume=80gb/spot=false"
permissions:
contents: read
pull-requests: write
actions: read # dawidd6/action-download-artifact reads the cache.yml build artifact
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -35,7 +39,7 @@ jobs:
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v9
uses: dawidd6/action-download-artifact@v21
with:
workflow: cache.yml
branch: main
Expand All @@ -57,7 +61,7 @@ jobs:
- name: Build PDF from LaTeX
shell: bash -l {0}
run: |
jb build lectures --builder pdflatex --path-output ./ -W --keep-going
jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going
mkdir -p _build/html/_pdf
cp -u _build/latex/*.pdf _build/html/_pdf
- name: Upload Execution Reports (LaTeX)
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/collab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Build Project on Google Collab (Execution)
on: [pull_request]
jobs:
execution-checks:
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/volume=80gb/spot=false"
permissions:
contents: read
pull-requests: write
actions: read # dawidd6/action-download-artifact reads the cache.yml build artifact
container:
image: docker://us-docker.pkg.dev/colab-images/public/runtime
options: --gpus all
Expand All @@ -22,7 +26,7 @@ jobs:
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v3
uses: dawidd6/action-download-artifact@v21
with:
workflow: cache.yml
branch: main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
environment-file: environment.yml
activate-environment: quantecon
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v9
uses: dawidd6/action-download-artifact@v21
with:
workflow: cache.yml
branch: main
Comment on lines 29 to 33
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ on:
push:
tags:
- 'publish*'
permissions:
contents: write # peaceiris/actions-gh-pages pushes the built site to gh-pages
actions: read # dawidd6/action-download-artifact reads the cache.yml build artifact
jobs:
publish:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/disk=large"
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/volume=80gb/spot=false"
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
run: pip list
# Download Build Cache from cache.yml
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v9
uses: dawidd6/action-download-artifact@v21
with:
workflow: cache.yml
branch: main
Expand Down
Loading