-
Notifications
You must be signed in to change notification settings - Fork 196
65 lines (54 loc) · 1.98 KB
/
models-performance.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Models Performance
permissions: write-all
on:
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-models-performance:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
TIMEGPT_TOKEN: ${{ secrets.TIMEGPT_TOKEN }}
PLOTS_REPO_URL: https://github.com/Nixtla/nixtla/blob/docs-figs-model-performance
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set up environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
create-args: python=3.9
cache-environment: true
- name: Install pip requirements
run: pip install ./
- name: Run evaluation
run: python -m action_files.models_performance.main
- name: Upload images to new branch main
run: |
git config --global user.email [email protected]
git config --global user.name AzulGarza
git push https://[email protected]/nixtla/nixtla.git --delete docs-figs-model-performance || true
git checkout -b docs-figs-model-performance
git add -f "*.png"
git commit -m "[cd] update png images" || echo "No changes to commit"
git push https://[email protected]/nixtla/nixtla.git HEAD:docs-figs-model-performance
- name: Upload results to the PR
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const markdown = fs.readFileSync('./action_files/models_performance/summary.md', 'utf8');
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: markdown
});
github-token: ${{ secrets.GITHUB_TOKEN }}