Skip to content

Collapse GitHub Actions into single job to save minutes #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/Sweden.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Update US Wastewater data (conversion factor approach)
name: Update wastewater data for all countries

on: # yamllint disable-line rule:truthy
push:
branches: [main]
schedule:
- cron: '57 09 * * *'
- cron: '57 09 */3 * *'

jobs:
build:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install flake8 pytest selenium webdriver_manager
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Lint with flake8
Expand All @@ -34,12 +34,41 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

- name: Process Data
- name: Get and process data for all countries
run: |
python ww_factor_US_states.py
python ww_factor_US.py
# Canada
python scripts/canada_get_data.py || true

- name: commit files
# Finland
python scripts/finland_get_ww_data.py || true

# Germany
python scripts/ww_Ger.py \
&& python scripts/ww_raw_Ger.py \
|| true

# Netherlands
python scripts/get_data_Netherlands.py || true

# Slovenia
python scripts/slovenia_get_ww_data.py

# Sweden
swe_csv=https://datagraphics.dckube.scilifelab.se/dataset/0ac8fa02871745048491de74e5689da9.csv
curl -L $swe_csv --output "data/Sweden/Sweden_ww.csv" || true

# Switzerland
python scripts/switzerland_get_ww_data.py || true

# United States (conversion factor approach)
python ww_factor_US_states.py && python ww_factor_US.py

# US CDC
python get_virus_concentration_wastewater_cdc.py \
&& python get_wastewater_change_cdc.py \
|| true

- name: Commit all updated files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/canada.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/finland_ww.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/germany.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/get_cdc_data.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/netherlands.yml

This file was deleted.

Loading