forked from thinkingmachines/unicef-ai4d-research-bank
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 864 Bytes
/
validate.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
name: Validate catalog items
on:
pull_request:
paths:
- 'catalog/**.yml'
workflow_dispatch:
jobs:
validate-catalog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip'
- name: Install git-restore-mtime
run: sudo apt install git-restore-mtime
- name: Restore mtimes for catalog items
run: cd catalog && git restore-mtime && cd ../featured && git restore-mtime && cd ../public/api/data && git restore-mtime && cd ../../..
- name: Pip install
run: pip install -r requirements.txt
- name: Validate Catalog Items
run: python scripts/validate_catalog.py
env:
GSTORAGE_API_KEY: ${{ secrets.GSTORAGE_API_KEY }}