clean up code

This commit is contained in:
Michael Duong 2023-09-10 17:05:30 +01:00
parent f0a5e55178
commit 2a5b2f1409

View file

@ -8,27 +8,35 @@ on:
jobs:
build:
Verify-Model:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
- name: Install packages to retrieve artifacts
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
run: |
cd modules/ml-pipeline/src/pipeline/
pip install --upgrade pip
pip install dvc dvc_s3
# pip install -r src/requirements/predictions/requirements-dev.txt
cd src/
- name: Retrieve artifacts (dvc.lock)
env:
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
run: |
cd modules/ml-pipeline/src/pipeline/src
dvc pull -r experiments
cd ..
- name: Build Prediction docker Image
run: |
docker build . --file Prediction.Dockerfile --tag prediction_test
docker run prediction_test
- name: Run Prediction docker container
run: |
docker run prediction_test