mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-07 06:59:58 +02:00
CI: update model key, split up cache restore/save
This commit is contained in:
parent
a3d8197930
commit
c86e59f481
1 changed files with 21 additions and 6 deletions
27
.github/workflows/test-eynollah.yml
vendored
27
.github/workflows/test-eynollah.yml
vendored
|
@ -24,17 +24,17 @@ jobs:
|
|||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||
df -h
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache/restore@v4
|
||||
id: seg_model_cache
|
||||
with:
|
||||
path: models_layout_v0_5_0
|
||||
key: ${{ runner.os }}-models
|
||||
- uses: actions/cache@v4
|
||||
key: ${{ runner.os }}-seg-models
|
||||
- uses: actions/cache/restore@v4
|
||||
id: ocr_model_cache
|
||||
with:
|
||||
path: models_ocr_v0_5_0
|
||||
key: ${{ runner.os }}-models
|
||||
- uses: actions/cache@v4
|
||||
path: models_ocr_v0_5_1
|
||||
key: ${{ runner.os }}-ocr-models
|
||||
- uses: actions/cache/restore@v4
|
||||
id: bin_model_cache
|
||||
with:
|
||||
path: default-2021-03-09
|
||||
|
@ -42,6 +42,21 @@ jobs:
|
|||
- name: Download models
|
||||
if: steps.seg_model_cache.outputs.cache-hit != 'true' || steps.bin_model_cache.outputs.cache-hit != 'true' || steps.ocr_model_cache.outputs.cache-hit != true
|
||||
run: make models
|
||||
- uses: actions/cache/save@v4
|
||||
if: steps.seg_model_cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: models_layout_v0_5_0
|
||||
key: ${{ runner.os }}-seg-models
|
||||
- uses: actions/cache/save@v4
|
||||
if: steps.ocr_model_cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: models_ocr_v0_5_1
|
||||
key: ${{ runner.os }}-ocr-models
|
||||
- uses: actions/cache/save@v4
|
||||
if: steps.bin_model_cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: default-2021-03-09
|
||||
key: ${{ runner.os }}-modelbin
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue