diff --git a/.github/workflows/cml.yml b/.github/workflows/cml.yml index 20f95dc6..b9bed6e5 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 @@ -20,8 +21,13 @@ 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") + echo $plot_location + echo "![](${plot_location})" >> report.md + cml comment create report.md