forked from huggingface/datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (34 loc) · 1.21 KB
/
benchmarks.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: benchmarks
on: [push]
jobs:
run:
runs-on: [ubuntu-latest]
container: docker://dvcorg/cml-py3:latest
steps:
- uses: actions/checkout@v2
- name: cml_run
env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
run: |
# Your ML workflow goes here
pip install --upgrade pip
pip install setuptools wheel
pip install -e .[benchmarks]
# pyarrow==3.0.0
pip install pyarrow==3.0.0
dvc repro --force
git fetch --prune
dvc metrics diff --show-json master > report.json
python ./benchmarks/format.py report.json report.md
echo "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==3.0.0\n" > final_report.md
cat report.md >> final_report.md
# pyarrow
pip install pyarrow --upgrade
dvc repro --force
git fetch --prune
dvc metrics diff --show-json master > report.json
python ./benchmarks/format.py report.json report.md
echo "\nPyArrow==latest\n" >> final_report.md
cat report.md >> final_report.md
echo "\n</details>" >> final_report.md
cml-send-comment final_report.md