generated from datagouv/tableschema-template
-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (29 loc) · 1.01 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
name: Vérification du respect des spécifications
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Récupération de la version de Python à utiliser
id: python_version_check
run: echo ::set-output name=PYTHON_VERSION::$(cat .python-version)
- name: Installation Python
uses: actions/setup-python@v2
with:
python-version: "${{ steps.python_version_check.outputs.PYTHON_VERSION }}"
- 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
run: frictionless validate --type schema schema.json
- name: Vérification du fichier d'exemple CSV
run: frictionless validate --schema schema.json exemple-valide.csv