-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.46 KB
/
run.yaml
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
name: run
on:
schedule:
- cron: '0 6 1 * *' # le 1er du mois à 6h
workflow_dispatch: # permet le déclenchement manuel depuis github.com
jobs:
download-data-and-audit-quality:
runs-on: ubuntu-latest
steps:
- name: Setup timezone to Europe/Paris
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Paris
- name: Check out to repo
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies from Pipfile
run: |
python -m pip install --upgrade pipenv
pipenv install --deploy
- name: Run the CLI command to download consolidated data
run: |
pipenv run python . download
- name: Run the quality audit on all rows
run: |
pipenv run python . audit
- name: Upload audit results as artifact
uses: actions/upload-artifact@v2
with:
name: audit.json
path: ./data/audit.json
retention-days: 90
- name: Upload audit details per line as artifact
uses: actions/upload-artifact@v2
with:
name: details.json
path: ./data/details.json
retention-days: 90
- name: Upload source data as artifact
uses: actions/upload-artifact@v2
with:
name: decp.json
path: ./data/decp.json
retention-days: 90