Skip to content

Add checks

Add checks #124

Workflow file for this run

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
- uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
- 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
- name: Vérification de l'absence de liens cassés dans les schémas
run: |
elixir checks.exs