-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.11 KB
/
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
29
30
31
32
33
34
name: Vérification du respect des spécifications
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Cache pip
uses: actions/cache@v3
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 table1 et des fichiers d'exemples associés
run: |
frictionless validate --type schema table1/schema.json
frictionless validate --schema table1/schema.json table1/exemple-valide.csv
- name: Vérification du schéma table2 et des fichiers d'exemples associés
run: |
frictionless validate --type schema table2/schema.json
frictionless validate --schema table2/schema.json table2/exemple-valide.csv
- name: Vérification du datapackage
run: |
frictionless validate datapackage.json