-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #632 from heerden/master
Full automation for Rt model 2 results
- Loading branch information
Showing
6 changed files
with
645 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,11 @@ | |
# Do not modify this action before discussing | ||
|
||
# If you have an analysis notebook or script that can export data, chat to @heerden and @vukosim | ||
# Every analysis has unique triggers so a new Github Action might be required | ||
|
||
on: | ||
#push | ||
push: | ||
branches: | ||
- master | ||
#tags: | ||
# - dailyfinal | ||
paths: | ||
- data/covid19za_provincial_cumulative_timeline_confirmed.csv | ||
|
||
|
@@ -45,22 +41,6 @@ jobs: | |
isReport: False | ||
poll: True | ||
|
||
- name: Calc Debug | ||
run: | | ||
cd data/calc | ||
ls | ||
# Note: some actions runs are skipped with this recipe, trying git-auto-commit-action | ||
#- name: Commit csv Changes | ||
# uses: EndBug/add-and-commit@v4 | ||
# with: | ||
# author_name: "Schalk van Heerden" | ||
# author_email: [email protected] | ||
# message: "Rt action run" | ||
# #'calculated_r0_sa_provincial_cumulative.csv' | ||
# add: "data/calc/" | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
# Required | ||
|
@@ -78,4 +58,5 @@ jobs: | |
# 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' | ||
#push_options: '--force' | ||
commit_author: github-actions <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- data/covid19za_provincial_cumulative_timeline_confirmed.csv | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
|
||
- 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 | ||
- 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]> |
Oops, something went wrong.