Skip to content

Commit d807744

Browse files
authored
refactor: migrate cache.yml to unified setup-lecture-env-full action (#6)
Replaces separate setup-lecture-env and setup-latex actions with the new unified setup-lecture-env-full action for global cache building. Benefits: - Simpler workflow (one action instead of two) - Optimized caching with separate Conda and apt caches - Consistent environment setup across all workflows
1 parent d84b0a1 commit d807744

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/cache.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,19 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v5
1313

14-
# Use composite action for environment setup
15-
- name: Setup Lecture Environment
16-
uses: quantecon/actions/setup-lecture-env@main
14+
# Use unified composite action for complete environment setup
15+
- name: Setup Complete Lecture Environment
16+
uses: quantecon/actions/setup-lecture-env-full@main
1717
with:
1818
python-version: '3.13'
1919
environment-file: 'environment.yml'
20+
latex-requirements-file: 'latex-requirements.txt'
2021
environment-name: 'quantecon'
2122

2223
- name: graphviz Support # TODO: required?
2324
run: |
2425
sudo apt-get -qq update && sudo apt-get install -y graphviz
2526
26-
# Use composite action for LaTeX setup
27-
- name: Install LaTeX Dependencies
28-
uses: quantecon/actions/setup-latex@main
29-
3027
# Use composite action for building
3128
- name: Build HTML
3229
id: build

0 commit comments

Comments
 (0)