From be825d4c6a0e52fff7a093ed2737849001b06cf9 Mon Sep 17 00:00:00 2001 From: Gabriel Dornas Date: Fri, 31 Oct 2025 15:52:08 -0300 Subject: [PATCH] Remove frictionlessdata/repository@v2 from actions See https://github.com/frictionlessdata/frictionless-ci/issues/58 Using poetry to install frictionless Run frictionless validate Create issue on failure using JasonEtco/create-an-issue@v2 --- .github/frictionless-validate-failure.md | 4 +++ .github/workflows/frictionless-validate.yml | 37 ++++++++++++++++----- 2 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 .github/frictionless-validate-failure.md diff --git a/.github/frictionless-validate-failure.md b/.github/frictionless-validate-failure.md new file mode 100644 index 0000000..a41efc2 --- /dev/null +++ b/.github/frictionless-validate-failure.md @@ -0,0 +1,4 @@ +--- +title: Frictionless validate failure on {{ date | date() }} +labels: bug +--- diff --git a/.github/workflows/frictionless-validate.yml b/.github/workflows/frictionless-validate.yml index 33e06c9..5c005f6 100644 --- a/.github/workflows/frictionless-validate.yml +++ b/.github/workflows/frictionless-validate.yml @@ -1,6 +1,7 @@ name: package on: + workflow_dispatch: push: branches: - main @@ -9,13 +10,33 @@ on: - main jobs: - - # Validate - - validate: + all: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Validate data - uses: frictionlessdata/repository@v2 \ No newline at end of file + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up python + id: setup-python + uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + virtualenvs-path: .venv + installer-parallel: true + - name: Install dependencies + run: | + poetry init -q --no-interaction + poetry add frictionless --no-interaction + - name: Run frictionless validate + run: poetry run frictionless validate datapackage.yaml + - name: Workflow failure notification + uses: JasonEtco/create-an-issue@v2 + if: failure() + with: + filename: .github/frictionless-validate-failure.md