forked from etalab/schema-passage-a-niveau
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (26 loc) · 796 Bytes
/
test.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
name: Vérification du respect des spécifications
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installation Python 3.7
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Installation des dépendances
run: pip install -r requirements.txt
- name: Vérification du schéma et des fichiers d'exemples
run: |
frictionless validate --type schema schema.json
frictionless validate --schema schema.json exemple-valide.csv