From f972f89b751e61ea8406e3ec8b0945e8cff32c85 Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:22:38 +0100 Subject: [PATCH 1/8] Update cml.yml --- .github/workflows/cml.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 20f95dc6..e109d8fd 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -6,6 +6,8 @@ on: jobs: run: runs-on: ubuntu-latest + permissions: + issues: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -14,14 +16,15 @@ jobs: env: REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - ls - cd model_data/simulation_system - pip install -r requirements.txt - python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet + echo "## HELLO" > report.md + # ls + # cd model_data/simulation_system + # pip install -r requirements.txt + # python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet - cd model_directory/RDSAP_CHANGE - echo "## MODEL METRICS from registry" > report.md - cat model_registry.csv >> report.md + # cd model_directory/RDSAP_CHANGE + # echo "## MODEL METRICS from registry" > report.md + # cat model_registry.csv >> report.md cml comment create report.md From 5b2b08140533209f5ed767aa35a887f108d7496e Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:24:34 +0100 Subject: [PATCH 2/8] Update cml.yml --- .github/workflows/cml.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index e109d8fd..fa74371c 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -3,11 +3,11 @@ on: push: branches: - mlmodel +permissions: + pull-requests: write jobs: run: runs-on: ubuntu-latest - permissions: - issues: write steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 From bdabfde526cfc6e9bbc803ff69dc124a1e38d49a Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:26:01 +0100 Subject: [PATCH 3/8] Update cml.yml --- .github/workflows/cml.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index fa74371c..494f2de5 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -3,8 +3,6 @@ on: push: branches: - mlmodel -permissions: - pull-requests: write jobs: run: runs-on: ubuntu-latest From 137cbe665a4ecbec332cd43ee01e2ee03f05938d Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:28:34 +0100 Subject: [PATCH 4/8] Update cml.yml --- .github/workflows/cml.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 494f2de5..dcec4cdd 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -3,6 +3,7 @@ on: push: branches: - mlmodel +permissions: write-all jobs: run: runs-on: ubuntu-latest From e50a8773748bc2eb5007f941e388b4b6dd5a8a45 Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:29:54 +0100 Subject: [PATCH 5/8] Update cml.yml --- .github/workflows/cml.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index dcec4cdd..b52a3932 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -15,15 +15,14 @@ jobs: env: REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "## HELLO" > report.md - # ls - # cd model_data/simulation_system - # pip install -r requirements.txt - # python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet + ls + cd model_data/simulation_system + pip install -r requirements.txt + python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet - # cd model_directory/RDSAP_CHANGE - # echo "## MODEL METRICS from registry" > report.md - # cat model_registry.csv >> report.md + cd model_directory/RDSAP_CHANGE + echo "## MODEL METRICS from registry" > report.md + cat model_registry.csv >> report.md cml comment create report.md From 0ee20ac5dc76c433f8c0867e543ae2174ef4507d Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:39:47 +0100 Subject: [PATCH 6/8] Update cml.yml --- .github/workflows/cml.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index b52a3932..26e79314 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -21,8 +21,12 @@ jobs: python3 training.py --train-filepath ./model_build_data/change_data/rdsap_full/train_validation_data.parquet --test-filepath ./model_build_data/change_data/rdsap_full/test_data.parquet cd model_directory/RDSAP_CHANGE - echo "## MODEL METRICS from registry" > report.md + echo "## Model metrics from registry" > report.md cat model_registry.csv >> report.md + echo "## Residuals plot from model" >> report.md + plot_location=$(find . -maxdepth 10 -name "residuals.png") + cml-publish $(plot_location) --md >> report.md + cml comment create report.md From d7c28f4f1d8182bf22f853c921866770af06444a Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:49:17 +0100 Subject: [PATCH 7/8] Update cml.yml --- .github/workflows/cml.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 26e79314..6f6c6cac 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -26,7 +26,8 @@ jobs: echo "## Residuals plot from model" >> report.md plot_location=$(find . -maxdepth 10 -name "residuals.png") - cml-publish $(plot_location) --md >> report.md + echo $plot_location + echo "![]($(plot_location))" >> report.md cml comment create report.md From 15fcb1f32b8fb2cdbe0d144141065a37bad4e2a3 Mon Sep 17 00:00:00 2001 From: quandanrepo <45804868+quandanrepo@users.noreply.github.com> Date: Sat, 19 Aug 2023 14:50:50 +0100 Subject: [PATCH 8/8] Update cml.yml Use {} --- .github/workflows/cml.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 6f6c6cac..b9bed6e5 100644 --- a/.github/workflows/cml.yml +++ b/.github/workflows/cml.yml @@ -27,7 +27,7 @@ jobs: echo "## Residuals plot from model" >> report.md plot_location=$(find . -maxdepth 10 -name "residuals.png") echo $plot_location - echo "![]($(plot_location))" >> report.md + echo "![](${plot_location})" >> report.md cml comment create report.md