mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
37 lines
793 B
YAML
37 lines
793 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 "Hello"
|
|
|
|
dvc pull -r experiments
|
|
|
|
cd ..
|
|
|
|
docker build . --file Prediction.Dockerfile --tag prediction_test
|
|
docker run prediction_test
|