Skip to content

Commit

Permalink
Merge pull request #37 from TUW-GEO/dev
Browse files Browse the repository at this point in the history
explicit path to jupyter cache
  • Loading branch information
MartinSchobben authored Jan 9, 2025
2 parents 2c093c0 + 86508aa commit 95a4794
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish-pythia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,22 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install Python and Dependencies
- name: Install Python and Jupyter
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- run: pip install jupyter jupyter-cache

- name: Get Jupyter Cache Dir
id: jupyter-cache
shell: bash
run: |
echo "dir=$(cd chapters && find ~+ -name ".jupyter_cache")" >> $GITHUB_OUTPUT
- name: Cache Environment
uses: actions/cache@v4
with:
path: |
~/.local/share/jupyter/kernels
~/.cache/pip
/usr/share/miniconda/envs
${{ steps.jupyter-cache.outputs.dir }}
./chapters/courses/.jupyter_cache
./chapters/templates/.jupyter_cache
./chapters/tutorials/.jupyter_cache
key: ${{ runner.os }}-env-${{ hashFiles('./environment.yml', './notebooks/**/*.yml') }}
restore-keys: ${{ runner.os }}-env-

Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/publish-quarto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,22 @@ jobs:
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install Python and Dependencies
- name: Install Python and Jupyter
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- run: pip install jupyter jupyter-cache

- name: Get Jupyter Cache Dir
id: jupyter-cache
shell: bash
run: |
echo "dir=$(cd chapters && find ~+ -name ".jupyter_cache")" >> $GITHUB_OUTPUT
- name: Cache Environment
uses: actions/cache@v4
with:
path: |
~/.local/share/jupyter/kernels
~/.cache/pip
/usr/share/miniconda/envs
${{ steps.jupyter-cache.outputs.dir }}
./chapters/courses/.jupyter_cache
./chapters/templates/.jupyter_cache
./chapters/tutorials/.jupyter_cache
key: ${{ runner.os }}-env-${{ hashFiles('./environment.yml', './notebooks/**/*.yml') }}
restore-keys: ${{ runner.os }}-env-

Expand Down

0 comments on commit 95a4794

Please sign in to comment.