From 91a9331525a34dab7d3800b1c675fb7de78362f0 Mon Sep 17 00:00:00 2001 From: Pierlou Ramade <48205215+Pierlou@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:43:52 +0100 Subject: [PATCH] create actions to check validity on push --- .github/workflows/check_validity.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/check_validity.yml diff --git a/.github/workflows/check_validity.yml b/.github/workflows/check_validity.yml new file mode 100644 index 0000000..131464f --- /dev/null +++ b/.github/workflows/check_validity.yml @@ -0,0 +1,27 @@ +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 datapackage.json