Refactor CI/CD pipeline to install dependencies before setting up DVC

This commit is contained in:
paul.roost 2025-09-30 17:12:21 +02:00
parent 4df499be5c
commit cce9eb29a0

View File

@ -37,10 +37,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup DVC - name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: | run: |
pip install dvc[s3] pip install poetry
dvc pull poetry install
- name: Setup DVC
run: poetry run dvc pull
- name: Train model - name: Train model
run: poetry run python src/models/train.py run: poetry run python src/models/train.py