From 274cd57419d3f9de0bb15f0e9b204d29cf1092e4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:52:52 +0200 Subject: [PATCH] Allow contributors to test their forks --- .github/workflows/format.yaml | 5 ++--- .github/workflows/validate.yaml | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 21df7c5..0639ee8 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -2,8 +2,7 @@ name: Format CSVs on: push: - branches: - - main + workflow_dispatch: permissions: contents: write jobs: @@ -13,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.x" - run: pip install -r linters/requirements.txt - run: python linters/format.py - run: python linters/validate.py diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 693820c..0fddda0 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -1,9 +1,11 @@ --- name: Validate CSVs on: + push: pull_request: branches: - main + workflow_dispatch: jobs: test-build: runs-on: ubuntu-latest @@ -11,6 +13,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.x" - run: pip install -r linters/requirements.txt - run: python linters/validate.py