iterative / cml

♾️ CML - Continuous Machine Learning | CI/CD for ML
http://cml.dev
Apache License 2.0
3.99k stars 333 forks source link

Invalid URL error #1422

Closed Sandy0002 closed 11 months ago

Sandy0002 commented 11 months ago

Invalid URL error is being shown when I am trying to push the program generated images to CML generated reports in my yaml file. I am using following code:

name: your-workflow-name
permissions:
  contents: read
  pull-requests: write
on: [push]
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3    
      - uses: iterative/setup-cml@v1
      - name: Train model
        run: |
          # Your ML workflow goes here
          pip install -r requirements.txt
          python train.py
      - name: Write CML report
        env:
          REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          # Post reports as comments in GitHub PRs
          cat metrics.txt >> report.md
          echo "## Data viz" >> report.md
          echo "![](./feature_importance.png 'Feature Importance')" >> report.md
          echo "![](./residuals.png 'Residuals')" >> report.md
          cml comment create report.md

What should be my next steps?

0x2b3bfa0 commented 11 months ago

Hello, @Sandy0002! Can you make sure feature_importance.png and residuals.png exist on the current directory?

Sandy0002 commented 11 months ago

Actually they are generated on runtime and so I checked them in my local IDE and it worked fine but when I am running through workflow neither images files are being generated nor the images are being passed in yaml file.

0x2b3bfa0 commented 11 months ago

The fact that images aren't being generated on GitHub Actions is something we can't help you to fix, although you can use e.g. https://github.com/mxschmitt/action-tmate to SSH into the GitHub runner and debug the issue interactively.

Sandy0002 commented 11 months ago

Thank you for the response.