Closed Sandy0002 closed 11 months ago
name: Farmers
on: [push]
jobs:
training:
runs-on: ubuntu-latest
steps:
- uses: iterative/setup-cml@v1
- uses: actions/checkout@v3
- name: cml_run
run: |
# Your ML workflow goes here
pip install -r requirements.txt
dvc repro
# METRICS TRACKING
# for pulling git history on runner
git fetch --prune
dvc metrics diff main > report.md
# Add figure to report
echo "## Validating results by region"
# cml-publish by_region.png --md >> report.md
echo '![](./by_region.png "Regional performances")' >> report.md
cml comment create report.md
+ env:
+ CML_TOKEN: ${{ github.token }}
It worked thank you.
But again I am getting the URL error which I posted earlier and I am not able to understand how to debug it.
@Sandy0002, can you please try adding something like ls -l ./by_region.png
before cml comment create
and see what happens?
It gave like this:
-rw-r--r-- 1 runner docker 7810 Sep 12 12:50 ./by_region.png
After that I got error message of invalid URL error
I am building a cml workflow in that I wrote below code:
Now for this code I am getting below error as TOKEN NOT FOUND
How to fix this?