Skip to content

Commit

Permalink
CI-CD cml File added
Browse files Browse the repository at this point in the history
  • Loading branch information
shivpalSW authored Jul 17, 2023
1 parent cb0e8b9 commit 87cd7a0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@

# # uncomment below lines to use CML

name: train-NLP-ML-usecase

on: [push]

jobs:
run:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: cml_run
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Your ML workflow commands
pip install --upgrade pip
pip install -r requirements.txt
dvc repro -v ## v >>> verbose
echo "# REPORTS" >> report.md
echo "## metrics" >> report.md
cat scores.json >> report.md
cml-send-comment report.md ## >> CML COMMAND USE TO COMMENT ON LAST COMMIT

0 comments on commit 87cd7a0

Please sign in to comment.