-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (37 loc) · 1.26 KB
/
daily.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
name: Daily
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 5 * * *'
jobs:
validate-cclw-sheet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use .env.example
run: cp .env.example .env
- name: Get dependencies
run: pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
- name: Download Sheet
run: python scripts/validate_cclw_sheet/download.py > download.csv
env:
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- name: Validate Download
run: |
head -n1 download.csv
wc -l download.csv
- name: Get python Container
run: docker pull python:3.9
- name: Build
run: |
docker-compose build
docker images
- name: Start Backend
run: make start
- name: Validate Sheet
run: TEST_HOST="http://localhost:8888" ./scripts/validate_cclw_sheet/validate-ingest.sh download.csv
- name: Log Dump
if: always()
run: docker-compose logs