Skip to content

Commit 8a8aa3f

Browse files
committed
Skip python if cache is hit
1 parent ae4be7f commit 8a8aa3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,22 @@ jobs:
3434
uses: actions/configure-pages@v3
3535
- name: Cache Notebook Execution
3636
uses: actions/cache@v3
37+
id: cache-execution
3738
with:
3839
path: ./lectures/_build/execute
3940
key: ${{ runner.os }}-execute-cache-${{ hashFiles('lectures/**/*.md') }}
4041
- uses: actions/setup-node@v4
4142
with:
4243
node-version: 18.x
4344
- name: Install Python
45+
if: steps.cache-execution.outputs.cache-hit != 'true'
4446
uses: actions/setup-python@v5
4547
with:
4648
python-version: '3.12'
4749
cache: 'pip'
4850
cache-dependency-path: '.github/requirements/requirements-execute.txt'
4951
- name: Install execution requirements for ipykernel and jupyter-server
52+
if: steps.cache-execution.outputs.cache-hit != 'true'
5053
run: python -m pip install -r .github/requirements/requirements-execute.txt
5154
shell: bash
5255
- name: Install MyST Markdown

0 commit comments

Comments
 (0)