cml_dvc_case
cml_dvc_case copied to clipboard
Cannot publish plot images
Hello,
I am trying to reproduce the test case but I am unable to include plot images in my report it throws this error
""" {"code":"ERR_INVALID_URL","input":"\r\n
Without images the report looks good, here is my cml.yaml file
name: train-my-model on: [push]
jobs: run: runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: iterative/setup-cml@v1
- uses: iterative/setup-dvc@v1
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: cml
env:
repo_token: ${{ secrets.REPO_SECRET }}
run: |
pip install -r requirements.txt
# Pull dataset with DVC
#dvc pull data
# Reproduce pipeline if any changes detected in dependencies
#dvc repro
# Use DVC metrics diff to compare metrics to master
git fetch --prune --unshallow
dvc metrics diff master >> report.md
# Add figure to report
dvc plots diff --target loss.csv --show-vega master > vega.json
vl2png vega.json -s 1.3 > vega.png
echo '' >> report.md
cml comment create --pr --publish report.md