-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (56 loc) · 1.71 KB
/
fast-on-push.yml
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
69
70
71
name: elo-fast-against-latest-push
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
working-directory: ./
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install microprediction
pip install --upgrade timemachines
- name: update elo ratings and test skaters
run: |
python update_skater_elo_ratings.py
- name: update html leaderboards
run: |
python create_leaderboards.py
- name: Show git status
run: |
git status
- name: Add regression_test_results files
run: |
git config --local user.name ${{ github.actor }}
git config --local user.email "my@email.com"
git add --all
- name: Show git status
run: |
git status
- name: Commit
run: |
git commit -a -m "commiting test results"
- name: git pull I
run: |
git pull
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}