Refactor CI/CD pipeline to install dependencies before setting up DVC
This commit is contained in:
parent
4df499be5c
commit
cce9eb29a0
14
.github/workflows/mlops-pipeline.yml
vendored
14
.github/workflows/mlops-pipeline.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user