From a9bde8f86da9b7dae2ef59a76a42ab22fccd641b Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Sun, 10 Sep 2023 17:23:48 +0100 Subject: [PATCH] clean up code --- .github/workflows/MLPipelinePullRequest.yml | 68 ++++++++++----------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/MLPipelinePullRequest.yml b/.github/workflows/MLPipelinePullRequest.yml index 9c3ae81..1733c28 100644 --- a/.github/workflows/MLPipelinePullRequest.yml +++ b/.github/workflows/MLPipelinePullRequest.yml @@ -40,43 +40,43 @@ jobs: run: | docker run prediction_test - # Trigger-CML: + Trigger-CML: - # runs-on: ubuntu-latest + runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - 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: | - # pip install --upgrade pip - # pip install dvc dvc_s3 - # # pip install -r src/requirements/predictions/requirements-dev.txt + steps: + - uses: actions/checkout@v3 + - 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: | + pip install --upgrade pip + pip install dvc dvc_s3 + # pip install -r src/requirements/predictions/requirements-dev.txt - # - 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 + - 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 - # - name: Generate report - # - uses: actions/setup-python@v4 - # - uses: iterative/setup-cml@v1 - # env: - # REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: | - # cd modules/ml-pipeline/src/pipeline/src - # echo "## Model metrics" > report.md - # cat metrics/metrics.json >> report.md + # - name: Generate report + # - uses: actions/setup-python@v4 + # - uses: iterative/setup-cml@v1 + # env: + # REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # cd modules/ml-pipeline/src/pipeline/src + # echo "## Model metrics" > report.md + # cat metrics/metrics.json >> report.md - # # echo "## Residuals plot from model" >> report.md - # # metrics_location=$(find . -maxdepth 10 -name "residuals.png") - # # echo $metrics_location - # # cd $metric_location - # # echo "![](./residuals.png)" >> report.md + # # echo "## Residuals plot from model" >> report.md + # # metrics_location=$(find . -maxdepth 10 -name "residuals.png") + # # echo $metrics_location + # # cd $metric_location + # # echo "![](./residuals.png)" >> report.md - # cml comment create report.md + # cml comment create report.md