-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.25 KB
/
update-data-dhs.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
name: Update Data from Wisconsin DHS
on:
workflow_dispatch:
schedule:
- cron: '10 20 * * *'
jobs:
update-data:
runs-on: windows-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
conda install pandas geopandas numpy matplotlib plotly
pip install TableauScraper
- name: Run update functions
run: |
python UpdateDataAuto.py
python UpdateTableauScraping.py
- name: Setup git config
run: |
# setup the username and email.
git config user.name "mattbayer"
git config user.email "<>"
- name: Commit updates
run: |
# Stage the file, commit and push
git add data/Covid-Data-WI-State.csv
git add data/Covid-Data-WI-County.csv
git add docs/_includes/plotly
git add data/deaths
git add data/vaccinations
git commit -m "Data update (auto)"
git push origin master