Skip to content

Commit

Permalink
Cache dependencies in Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Baschdl committed Jan 30, 2024
1 parent 56ffdbe commit e2dbd30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/push_to_overleaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@ jobs:
ls -lah
- name: Checkout python project on Github
uses: actions/checkout@v4
- name: Cache dependency
id: cache-dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
cd ${{ github.workspace }}
python3 -m pip install --upgrade pip
Expand Down

0 comments on commit e2dbd30

Please sign in to comment.