-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (38 loc) · 1.32 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
35
36
37
38
39
40
name: Vérification du respect des spécifications
on:
push:
# NOTE: if you need to debug these things locally, use `act` and medium installation:
# E.g:
# `act push` or `act push --container-architecture linux/amd64` (Mac M1)
#
# Installation notes at https://github.com/nektos/act
#
# I did early tests to simulate releases but so far didn't manage to extract the GITHUB_REF
# https://github.com/nektos/act/discussions/2154
#
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Installation Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- 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 statique et des fichiers d'exemples associés
run: |
frictionless validate --type schema statique/schema-statique.json
frictionless validate datapackage.json
- name: Vérification du schéma dynamique et des fichiers d'exemples associés
run: |
frictionless validate --type schema dynamique/schema-dynamique.json