CI: setup-dependent pip cache (#16751)
* Setup-dependent pip cache * Do not restore from old versions
This commit is contained in:
5
.github/workflows/add-model-like.yml
vendored
5
.github/workflows/add-model-like.yml
vendored
@@ -23,10 +23,7 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: v1-tests_model_like
|
key: v1-tests_model_like-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: |
|
|
||||||
v1-tests_model_like-${{ hashFiles('setup.py') }}
|
|
||||||
v1-tests_model_like
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
5
.github/workflows/model-templates.yml
vendored
5
.github/workflows/model-templates.yml
vendored
@@ -29,10 +29,7 @@ jobs:
|
|||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: v1.2-tests_templates
|
key: v1.2-tests_templates-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: |
|
|
||||||
v1.2-tests_templates-${{ hashFiles('setup.py') }}
|
|
||||||
v1.2-tests_templates
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
8
.github/workflows/update_metdata.yml
vendored
8
.github/workflows/update_metdata.yml
vendored
@@ -15,16 +15,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Loading cache.
|
- name: Loading cache.
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: v1-metadata
|
key: v1-metadata-${{ hashFiles('setup.py') }}
|
||||||
restore-keys: |
|
|
||||||
v1-metadata-${{ hashFiles('setup.py') }}
|
|
||||||
v1-metadata
|
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: |
|
run: |
|
||||||
@@ -33,4 +30,3 @@ jobs:
|
|||||||
- name: Update metadata
|
- name: Update metadata
|
||||||
run: |
|
run: |
|
||||||
python utils/update_metadata.py --token ${{ secrets.SYLVAIN_HF_TOKEN }} --commit_sha ${{ github.sha }}
|
python utils/update_metadata.py --token ${{ secrets.SYLVAIN_HF_TOKEN }} --commit_sha ${{ github.sha }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user