diff --git a/.gitea/workflows/mlops-pipeline.yml b/.gitea/workflows/mlops-pipeline.yml index 2ac3933..5f12f3f 100644 --- a/.gitea/workflows/mlops-pipeline.yml +++ b/.gitea/workflows/mlops-pipeline.yml @@ -17,10 +17,21 @@ jobs: with: python-version: '3.12' + - name: Cache Poetry dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cache/pypoetry + ~/.cache/pip + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- + + - name: Install Poetry + run: pip install poetry + - name: Install dependencies - run: | - pip install poetry - poetry install + run: poetry install --no-interaction - name: Setup DVC run: | @@ -47,10 +58,21 @@ jobs: with: python-version: '3.12' + - name: Cache Poetry dependencies + uses: actions/cache@v3 + with: + path: | + ~/.cache/pypoetry + ~/.cache/pip + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + restore-keys: | + ${{ runner.os }}-poetry- + + - name: Install Poetry + run: pip install poetry + - name: Install dependencies - run: | - pip install poetry - poetry install + run: poetry install --no-interaction - name: Setup DVC run: |