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:
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user