-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (30 loc) · 983 Bytes
/
cml.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: backtest_result
on: [push]
jobs:
run:
permissions: write-all
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: Backtrader
run: |
# Your ML workflow goes here
pip install -r requirements.txt
- name: Write CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Post reports as comments in GitHub PRs
echo "### Backtrader Result" > report.md
cat test_results/result_metrics.txt >> report.md
cml-send-comment report.md