From 8dc524af223135377e72f6c9220f919f66a28fc9 Mon Sep 17 00:00:00 2001 From: Alexis Bruneteau Date: Wed, 1 Oct 2025 18:53:40 +0200 Subject: [PATCH] Fix Poetry cache path for proper dependency caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed cache configuration: - Moved Install Poetry step before cache setup - Updated cache path to ~/.cache/pypoetry/virtualenvs (actual venv location) - Removed **/poetry.lock wildcard in favor of direct poetry.lock reference - This ensures the virtualenv itself is cached, not just metadata This should significantly speed up CI/CD runs by reusing installed packages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/mlops-pipeline.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/mlops-pipeline.yml b/.gitea/workflows/mlops-pipeline.yml index 616b254..8aad883 100644 --- a/.gitea/workflows/mlops-pipeline.yml +++ b/.gitea/workflows/mlops-pipeline.yml @@ -17,19 +17,19 @@ jobs: with: python-version: '3.12' - - name: Cache Poetry dependencies + - name: Install Poetry + run: pip install poetry + + - name: Cache Poetry virtualenv uses: actions/cache@v3 with: path: | - ~/.cache/pypoetry + ~/.cache/pypoetry/virtualenvs ~/.cache/pip - key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- - - name: Install Poetry - run: pip install poetry - - name: Install dependencies run: poetry install --no-interaction --no-root @@ -63,19 +63,19 @@ jobs: with: python-version: '3.12' - - name: Cache Poetry dependencies + - name: Install Poetry + run: pip install poetry + + - name: Cache Poetry virtualenv uses: actions/cache@v3 with: path: | - ~/.cache/pypoetry + ~/.cache/pypoetry/virtualenvs ~/.cache/pip - key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} restore-keys: | ${{ runner.os }}-poetry- - - name: Install Poetry - run: pip install poetry - - name: Install dependencies run: poetry install --no-interaction --no-root