File tree 4 files changed +73
-21
lines changed
4 files changed +73
-21
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
jobs :
8
8
cache :
9
- runs-on : quantecon-gpu
10
- container :
11
- image : ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312
12
- options : --gpus all
9
+ runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
13
10
steps :
14
11
- uses : actions/checkout@v4
15
12
with :
16
13
ref : ${{ github.event.pull_request.head.sha }}
17
- - name : Check nvidia drivers
14
+ - name : Setup Anaconda
15
+ uses : conda-incubator/setup-miniconda@v3
16
+ with :
17
+ auto-update-conda : true
18
+ auto-activate-base : true
19
+ miniconda-version : ' latest'
20
+ python-version : " 3.12"
21
+ environment-file : environment.yml
22
+ activate-environment : quantecon
23
+ - name : Install jax (and install checks for GPU)
18
24
shell : bash -l {0}
19
25
run : |
26
+ pip install -U "jax[cuda12]"
27
+ python --version
28
+ python scripts/test-jax-install.py
20
29
nvidia-smi
21
30
- name : Build HTML
22
31
shell : bash -l {0}
Original file line number Diff line number Diff line change @@ -2,18 +2,41 @@ name: Build Project [using jupyter-book]
2
2
on : [pull_request]
3
3
jobs :
4
4
preview :
5
- runs-on : quantecon-gpu
6
- container :
7
- image : ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312
8
- options : --gpus all
5
+ runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
9
6
steps :
10
7
- uses : actions/checkout@v4
11
8
with :
12
9
ref : ${{ github.event.pull_request.head.sha }}
13
- # Check nvidia drivers
14
- - name : nvidia Drivers
10
+ - name : Setup Anaconda
11
+ uses : conda-incubator/setup-miniconda@v3
12
+ with :
13
+ auto-update-conda : true
14
+ auto-activate-base : true
15
+ miniconda-version : ' latest'
16
+ python-version : " 3.12"
17
+ environment-file : environment.yml
18
+ activate-environment : quantecon
19
+ - name : Install jax (and install checks for GPU)
20
+ shell : bash -l {0}
21
+ run : |
22
+ pip install -U "jax[cuda12]"
23
+ python --version
24
+ python scripts/test-jax-install.py
25
+ nvidia-smi
26
+ - name : Install latex dependencies
15
27
shell : bash -l {0}
16
- run : nvidia-smi
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
17
40
- name : Display Conda Environment Versions
18
41
shell : bash -l {0}
19
42
run : conda list
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Build Project on Google Collab (Execution)
2
2
on : [pull_request]
3
3
jobs :
4
4
execution-checks :
5
- runs-on : quantecon- gpu
5
+ runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24- gpu-x64/disk=large "
6
6
container :
7
7
image : docker://us-docker.pkg.dev/colab-images/public/runtime
8
8
options : --gpus all
Original file line number Diff line number Diff line change 6
6
jobs :
7
7
publish :
8
8
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
9
- runs-on : quantecon-gpu
10
- container :
11
- image : ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312
12
- options : --gpus all
9
+ runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
13
10
steps :
14
11
- name : Checkout
15
12
uses : actions/checkout@v4
16
- - name : Install Git (required to commit notebooks)
17
- shell : bash -l {0}
18
- run : apt-get install -y git
19
- - name : Check nvidia drivers
13
+ - name : Setup Anaconda
14
+ uses : conda-incubator/setup-miniconda@v3
15
+ with :
16
+ auto-update-conda : true
17
+ auto-activate-base : true
18
+ miniconda-version : ' latest'
19
+ python-version : " 3.12"
20
+ environment-file : environment.yml
21
+ activate-environment : quantecon
22
+ - name : Install jax (and install checks for GPU)
20
23
shell : bash -l {0}
21
24
run : |
25
+ pip install -U "jax[cuda12]"
26
+ python --version
27
+ python scripts/test-jax-install.py
22
28
nvidia-smi
29
+ - name : Install latex dependencies
30
+ shell : bash -l {0}
31
+ run : |
32
+ sudo apt-get -qq update
33
+ sudo apt-get install -y \
34
+ texlive-latex-recommended \
35
+ texlive-latex-extra \
36
+ texlive-fonts-recommended \
37
+ texlive-fonts-extra \
38
+ texlive-xetex \
39
+ latexmk \
40
+ xindy \
41
+ dvipng \
42
+ cm-super
23
43
- name : Display Conda Environment Versions
24
44
shell : bash -l {0}
25
45
run : conda list
You can’t perform that action at this time.
0 commit comments