Skip to content

Commit

Permalink
add cml yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
YohansSamuel committed Sep 2, 2022
1 parent 7ccd3d4 commit a08ecc3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: your-workflow-name
on: [push]
jobs:
run:
runs-on: ubuntu-latest
# optionally use a convenient Ubuntu LTS + DVC + CML image
# container: docker://ghcr.io/iterative/cml:0-dvc2-base1
steps:
- uses: actions/checkout@v2
# may need to setup NodeJS & Python3 on e.g. self-hosted
# - uses: actions/setup-node@v2
# with:
# node-version: '16'
# - uses: actions/setup-python@v2
# with:
# python-version: '3.x'
- 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 results.txt >> report.md
cml send-comment report.md

0 comments on commit a08ecc3

Please sign in to comment.