Skip to content
Closed
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
33 changes: 20 additions & 13 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,29 @@ jobs:
environment-file: environment.yml
activate-environment: quantecon
- name: graphviz Support # TODO: required?
timeout-minutes: 10
run: |
sudo apt-get -qq update && sudo apt-get install -y graphviz
# Retried with per-command timeouts (timeout inside sudo, so the kill reaches
# apt-get and the dpkg lock is released): a stalled Ubuntu mirror otherwise
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
pkgs="graphviz"
for attempt in 1 2; do
sudo timeout -k 30s 1m apt-get -qq update && sudo timeout -k 30s 3m apt-get install -y $pkgs && break
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
done
- name: Install latex dependencies
timeout-minutes: 30
run: |
sudo apt-get -qq update
sudo apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
cm-super \
latex-cjk-all
# Retried with per-command timeouts (timeout inside sudo, so the kill reaches
# apt-get and the dpkg lock is released): a stalled Ubuntu mirror otherwise
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
pkgs="texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng cm-super latex-cjk-all"
for attempt in 1 2; do
sudo timeout -k 30s 2m apt-get -qq update && sudo timeout -k 30s 12m apt-get install -y $pkgs && break
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
done
- name: Build HTML
shell: bash -l {0}
run: |
Expand Down
33 changes: 20 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,29 @@ jobs:
environment-file: environment.yml
activate-environment: quantecon
- name: Graphics Support #TODO: Review if graphviz is needed
timeout-minutes: 10
run: |
sudo apt-get -qq update && sudo apt-get install -y graphviz
# Retried with per-command timeouts (timeout inside sudo, so the kill reaches
# apt-get and the dpkg lock is released): a stalled Ubuntu mirror otherwise
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
pkgs="graphviz"
for attempt in 1 2; do
sudo timeout -k 30s 1m apt-get -qq update && sudo timeout -k 30s 3m apt-get install -y $pkgs && break
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
Comment thread
mmcky marked this conversation as resolved.
done
- name: Install latex dependencies
timeout-minutes: 30
run: |
sudo apt-get -qq update
sudo apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
cm-super \
latex-cjk-all
# Retried with per-command timeouts (timeout inside sudo, so the kill reaches
# apt-get and the dpkg lock is released): a stalled Ubuntu mirror otherwise
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
pkgs="texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng cm-super latex-cjk-all"
for attempt in 1 2; do
sudo timeout -k 30s 2m apt-get -qq update && sudo timeout -k 30s 12m apt-get install -y $pkgs && break
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
done
- name: Display Conda Environment Versions
shell: bash -l {0}
run: conda list
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ jobs:
environment-file: environment.yml
activate-environment: quantecon
- name: Install latex dependencies
timeout-minutes: 30
run: |
sudo apt-get -qq update
sudo apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
cm-super
# Retried with per-command timeouts (timeout inside sudo, so the kill reaches
# apt-get and the dpkg lock is released): a stalled Ubuntu mirror otherwise
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
pkgs="texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng cm-super"
for attempt in 1 2; do
sudo timeout -k 30s 2m apt-get -qq update && sudo timeout -k 30s 12m apt-get install -y $pkgs && break
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
done
- name: Display Conda Environment Versions
shell: bash -l {0}
run: conda list
Expand Down
Loading