From c36146adad1a7e41c28242ae8fe6f4efcdc86a0b Mon Sep 17 00:00:00 2001 From: ChrisKent Date: Fri, 13 Sep 2024 13:44:41 +0100 Subject: [PATCH] Added a pr validator --- .github/workflows/validate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..f550a96 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,21 @@ +name: Pull Request Validation + +on: + pull_request: + branches: [main] + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install primal-page + - name: Run primal-page validate + run: primal-page validate directory ./primerschemes