Skip to content

Commit 8f6bc1d

Browse files
authored
Merge pull request #2 from QuantEcon/maint-gha
MAINT: Update GHA and test preview mechanism
2 parents 35a24a6 + 00c8bfa commit 8f6bc1d

File tree

5 files changed

+17
-138
lines changed

5 files changed

+17
-138
lines changed

.github/workflows/cache.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: iterative/setup-cml@v1
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
ref: ${{ github.event.pull_request.head.sha }}
1414
- name: Deploy runner on EC2
@@ -30,7 +30,7 @@ jobs:
3030
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
3131
options: --gpus all
3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
3636
- name: Check nvidia drivers
@@ -42,13 +42,13 @@ jobs:
4242
run: |
4343
jb build lectures --path-output ./ -W --keep-going
4444
- name: Upload Execution Reports
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v4
4646
if: failure()
4747
with:
4848
name: execution-reports
4949
path: _build/html/reports
5050
- name: Upload "_build" folder (cache)
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
with:
5353
name: build-cache
5454
path: _build

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: iterative/setup-cml@v1
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99
with:
1010
ref: ${{ github.event.pull_request.head.sha }}
1111
- name: Deploy runner on EC2
@@ -27,7 +27,7 @@ jobs:
2727
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
2828
options: --gpus all
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333
# Check nvidia drivers
@@ -55,7 +55,7 @@ jobs:
5555
mkdir -p _build/html/_notebooks
5656
cp -u _build/jupyter/*.ipynb _build/html/_notebooks
5757
- name: Upload Execution Reports (Download Notebooks)
58-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v4
5959
if: failure()
6060
with:
6161
name: execution-reports
@@ -67,7 +67,7 @@ jobs:
6767
mkdir -p _build/html/_pdf
6868
cp -u _build/latex/*.pdf _build/html/_pdf
6969
- name: Upload Execution Reports (LaTeX)
70-
uses: actions/upload-artifact@v2
70+
uses: actions/upload-artifact@v4
7171
if: failure()
7272
with:
7373
name: execution-reports
@@ -78,13 +78,13 @@ jobs:
7878
run: |
7979
jb build lectures --path-output ./ -n -W --keep-going
8080
- name: Upload Execution Reports (HTML)
81-
uses: actions/upload-artifact@v2
81+
uses: actions/upload-artifact@v4
8282
if: failure()
8383
with:
8484
name: execution-reports
8585
path: _build/html/reports
8686
- name: Preview Deploy to Netlify
87-
uses: nwtgck/actions-netlify@v1.1
87+
uses: nwtgck/actions-netlify@v2
8888
with:
8989
publish-dir: '_build/html/'
9090
production-branch: main

.github/workflows/linkcheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: ["3.11"]
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020
- name: Setup Anaconda
2121
uses: conda-incubator/setup-miniconda@v2
2222
with:
@@ -27,7 +27,7 @@ jobs:
2727
environment-file: environment.yml
2828
activate-environment: quantecon
2929
- name: Download "build" folder (cache)
30-
uses: dawidd6/action-download-artifact@v2
30+
uses: dawidd6/action-download-artifact@v3
3131
with:
3232
workflow: cache.yml
3333
branch: main
@@ -37,7 +37,7 @@ jobs:
3737
shell: bash -l {0}
3838
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
3939
- name: Upload Link Checker Reports
40-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4141
if: failure()
4242
with:
4343
name: linkcheck-reports

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: iterative/setup-cml@v1
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
ref: ${{ github.event.pull_request.head.sha }}
1414
- name: Deploy runner on EC2
@@ -32,7 +32,7 @@ jobs:
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636
- name: Install Git (required to commit notebooks)
3737
shell: bash -l {0}
3838
run: apt-get install -y git
@@ -48,7 +48,7 @@ jobs:
4848
run: pip list
4949
# Download Build Cache from cache.yml
5050
- name: Download "build" folder (cache)
51-
uses: dawidd6/action-download-artifact@v2
51+
uses: dawidd6/action-download-artifact@v3
5252
with:
5353
workflow: cache.yml
5454
branch: main
@@ -88,7 +88,7 @@ jobs:
8888
with:
8989
github_token: ${{ secrets.GITHUB_TOKEN }}
9090
publish_dir: _build/html/
91-
cname: stats.quantecon.org
91+
# cname: stats.quantecon.org
9292
- name: Prepare lecture-stats.notebooks sync
9393
shell: bash -l {0}
9494
run: |

lectures/_config.ymla

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)