From 9f0ed7b3e39025d645a6c4e701393e07add1b1de Mon Sep 17 00:00:00 2001 From: Matthew Avaylon Date: Fri, 8 Sep 2023 18:10:05 -0700 Subject: [PATCH] Create validate_schema.yaml --- .github/workflows/validate_schema.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/validate_schema.yaml diff --git a/.github/workflows/validate_schema.yaml b/.github/workflows/validate_schema.yaml new file mode 100644 index 0000000..d53a4eb --- /dev/null +++ b/.github/workflows/validate_schema.yaml @@ -0,0 +1,21 @@ +name: Validate schema + +on: [push, pull_request, workflow_dispatch] + +jobs: + validate: + # run pipeline on either a push event or a PR event on a fork + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install dev branch of HDMF + run: | + pip install git+https://github.com/hdmf-dev/hdmf.git + - name: Validate schema specification + run: | + validate_hdmf_spec common -m hdmf-common.schema.json