From cce9eb29a09e2867397d9c9d8fbbb725a7050403 Mon Sep 17 00:00:00 2001 From: "paul.roost" Date: Tue, 30 Sep 2025 17:12:21 +0200 Subject: [PATCH] Refactor CI/CD pipeline to install dependencies before setting up DVC --- .github/workflows/mlops-pipeline.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mlops-pipeline.yml b/.github/workflows/mlops-pipeline.yml index 14e2122..cd5a04e 100644 --- a/.github/workflows/mlops-pipeline.yml +++ b/.github/workflows/mlops-pipeline.yml @@ -37,10 +37,18 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup DVC + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install dependencies run: | - pip install dvc[s3] - dvc pull + pip install poetry + poetry install + + - name: Setup DVC + run: poetry run dvc pull - name: Train model run: poetry run python src/models/train.py