forked from KITmetricslab/covid19-forecast-hub-de
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (69 loc) · 2.47 KB
/
baselines.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
72
73
74
75
76
77
78
name: "Baselines"
on:
workflow_dispatch:
# schedule:
# - cron: "0 8 * * 2"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 1 # otherwise, you will failed to push refs to dest repo
- name: Setup R
uses: r-lib/actions/setup-r@v1
- name: Install R dependencies
run: |
sudo apt-get install libcurl4-openssl-dev libxml2-dev
Rscript -e 'install.packages(c("forecast", "MMWRweek"))'
- name: Setup Git
run: |
echo "=============================================================================="
echo "Freeing up disk space on CI system"
echo "=============================================================================="
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Removing large packages"
# sudo apt-get remove -y '^ghc-8.*'
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"
# deleting 15GB
rm -rf /usr/share/dotnet/
df -h
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action - Create Ensembles"
- name: Create Baselines
env:
AUTH: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ./code/baselines
# create baselines
Rscript KIT-baseline.R
Rscript KIT-extrapolation_baseline.R
Rscript KIT-time_series_baseline.R
cd ../../
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUBTOKEN }}
commit-message: Update Baselines
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: baseline
delete-branch: true
title: 'Update baselines'
body: |
Update baselines
labels: |
automated pr
reviewers: jbracher