ML/.github/workflows/VerifyModelOperational.yml
2023-09-10 16:38:50 +01:00

38 lines
844 B
YAML

name: Build and test model using a dummy prediction pipeline
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
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/
export AWS_ACCESS_KEY_ID=${ROBOT_AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY=${ROBOT_AWS_SECRET_ACCESS_KEY}
echo ${AWS_ACCESS_KEY_ID}
echo ${AWS_SECRET_ACCESS_KEY}
dvc pull -r experiments
cd ..
docker build . --file Prediction.Dockerfile --tag prediction_test
docker run prediction_test