This repository has been archived by the owner on Dec 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 2.4 KB
/
scheduler.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
name: scheduler
on:
schedule:
- cron: "0 */2 * * *"
jobs:
update-datasets:
runs-on: ubuntu-latest
env:
PYTHONPATH: "src:test"
CONFIG: "env/prod/config.yaml"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Setup pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: |
for f in requirements/*.txt; do
pip install -r "$f";
done
- name: Retrieving national data
run: python src/collector/tasks/get_national_dataset --output_folder raw/national
- name: Retrieving municipality data
run: python src/collector/tasks/get_municipality_dataset --output_folder raw/municipality
# - name: Retrieving intensive care data
# run: python src/collector/tasks/get_intensive_care_dataset --output_folder raw/intensive-care
- name: Cleaning national data
run: python src/collector/tasks/clean_national_dataset --input_folder raw/national --output_folder interim/national
- name: Cleaning municipality data
run: python src/collector/tasks/clean_municipality_dataset --input_folder raw/municipality --output_folder interim/municipality
# - name: Cleaning intensive care data
# run: python src/collector/tasks/clean_intensive_care_dataset --input_folder raw/intensive-care --output_folder interim/intensive-care
- name: Merging national data
run: python src/collector/tasks/merge_national_dataset --name rivm-covid-19-national --input_folder interim/national --output_folder processed
- name: Merging municipality data
run: python src/collector/tasks/merge_municipality_dataset --name rivm-covid-19-municipality --input_folder interim/municipality --output_folder processed
# - name: Merging intensive care data
# run: python src/collector/tasks/merge_intensive_care_dataset --name nice-covid-19-intensive-care --input_folder interim/intensive-care --output_folder processed
- name: Committing changes
uses: dciborow/commit@0.0.1
with:
push-branch: master
force-push: true
files: .
commit-message: Update datasets
name: GitHub Actions
email: actions@github.com
github-token: ${{ secrets.GITHUB_TOKEN }}