Update Data from Wisconsin DHS #1381
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
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 |