Skip to content

Commit

Permalink
try caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jagapiou committed Jul 28, 2023
1 parent ddfdd56 commit ade6a9f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/install-meltingpot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,37 @@ inputs:
runs:
using: composite
steps:
# - name: Get current runner
# id: get-runner
# shell: bash
# run: |
# echo "runner=$(uname -s)-$(uname -r)" >> $GITHUB_OUTPUT

- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: ${{ inputs.python-version }}
# cache: pip
# cache-dependency-path: setup.py

- name: Restore assets
id: assets-restore
uses: actions/cache/restore@v3
with:
path: assets
key: assets-${{ hashFiles('setup.py') }}
restore-keys: |
assets-
- name: Install Python dependencies
shell: bash
run: |
pip install --upgrade pip
pip cache list
pip install -e .[dev]
- name: Save assets
uses: actions/cache/save@v3
with:
path: assets
key: ${{ steps.assets-restore.outputs.cache-primary-key }}

0 comments on commit ade6a9f

Please sign in to comment.