From 9b9b3f3a252fef1290c2789b5c12801766cda0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Voituret?= Date: Wed, 8 Jul 2020 17:19:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20caching=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi.yml | 2 +- .github/workflows/pytest.yml | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index bd25f52..473f74c 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -22,7 +22,7 @@ jobs: ${{ runner.os }}-pip- - uses: actions/cache@v2 with: - path: dist + path: ${{ env.GITHUB_WORKSPACE }}/dist key: sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }} restore-keys: | sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }} diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 66ef563..d4b2965 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,18 +16,21 @@ jobs: with: python-version: ${{ matrix.python-version }} - uses: actions/cache@v2 + id: spleeter-pip-cache with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} restore-keys: | ${{ runner.os }}-pip- - uses: actions/cache@v2 + env: + model-release: 1 + id: spleeter-model-cache with: - path: pretrained_models - key: models-${{ hashFiles('**/setup.py') }} + path: ${{ env.GITHUB_WORKSPACE }}/pretrained_models + key: models-${{ env.model-release }} restore-keys: | - models-${{ hashFiles('**/setup.py') }} - models- + models-${{ env.model-release }} - name: Install dependencies run: | sudo apt-get update && sudo apt-get install -y ffmpeg