-
Notifications
You must be signed in to change notification settings - Fork 25
68 lines (53 loc) · 1.6 KB
/
Copy pathmake_stats.yaml
File metadata and controls
68 lines (53 loc) · 1.6 KB
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
65
66
67
68
name: Make stats
on: workflow_dispatch
jobs:
stats:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: 'stats' # TODO: change when everything works
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: 'pip'
- name: install python dependencies
run: pip install pandas numpy pyyaml
- name: make stat files
run: python stast/make_stats.py
- name: Commit
run: |
git config --global user.email 'actions@github.com'
git config --global user.name 'Github Actions'
git add stats/*
git commit -m "update stats"
git push origin HEAD
- name: Debug with tmate on failure
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
figures:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: 'stats' # TODO: change when everything works
- uses: actions/setup-python@v6
with:
python-version: '3.13'
cache: 'pip'
- name: install python dependencies
run: pip install pandas numpy pyyaml matplotlib seaborn
- name: make figures
run: python stast/make_figures_simple.py
- name: Commit
run: |
git config --global user.email 'actions@github.com'
git config --global user.name 'Github Actions'
git add stats/*
git commit -m "update stats figures"
git push origin HEAD
- name: Debug with tmate on failure
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3