Skip to content

Commit

Permalink
self-hosted no need for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiristseng committed Apr 8, 2024
1 parent 1f76b8e commit cecb6d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:
python-version: '3.x'
- name: Cache python
uses: actions/cache@v4
if: ${{ contains(runner.name, 'GitHub Actions') }}
id: cache-py
with:
key: ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
path: ${{ env.pythonLocation }}
- name: Install Python dependencies
if: ${{ steps.cache-py.outputs.cache-hit != 'true' }}
if: ${{ !contains(runner.name, 'GitHub Actions') || steps.cache-py.outputs.cache-hit != 'true' }}
run: pip install -r requirements.txt
- name: Cache executed notebooks
uses: actions/cache@v4
Expand Down

0 comments on commit cecb6d2

Please sign in to comment.