-
Notifications
You must be signed in to change notification settings - Fork 200
63 lines (56 loc) · 2.07 KB
/
rtlive-model-za.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
# This workflow was created by @heerden
# Do not modify this action before discussing
# If you have an analysis notebook or script that can export data, chat to @heerden and @vukosim
name: Rt MCMC model (2)
on:
push:
branches:
- master
paths:
- data/covid19za_provincial_cumulative_timeline_confirmed.csv
- notebooks/covid-model/*
jobs:
runmcmc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
- name: Setup Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r notebooks/covid-model/requirements.txt
- name: Run Python Script
run: |
cd notebooks/covid-model
python rtlive-model-za.py
# - name: Commit changes
# run: |
# git config --local user.name github-actions
# git config --local user.email "[email protected]"
# git add data/calc/*.csv
# if [[ "$(git status --porcelain)" != "" ]]; then
# git commit -m "Rt model 2 action run" -a
# git push origin master
# fi
- uses: stefanzweifel/git-auto-commit-action@v4
with:
# Required
commit_message: Rt model 2 action run
# Optional branch to push to, defaults to the current branch
#branch: master
# Optional options appended to `git-commit`
#commit_options: '--no-verify --signoff'
# Optional glob pattern of files which should be added to the commit
file_pattern: data/calc/*.csv
# Optional local file path to the repository
#repository: .
# Optional commit user and author settings
# Optional tag message
# Action will create and push a new tag to the remote repository and the defined branch
#tagging_message: 'v1.0.0'
# Optional options appended to `git-push`
# push_options: '--force'
commit_author: github-actions <[email protected]>