Update to use latest template with gh actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate schema | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install HDMF | |
run: | | |
pip install hdmf | |
- name: Download latest nwb schema language specification | |
run: | | |
curl -L https://raw.githubusercontent.com/NeurodataWithoutBorders/nwb-schema/dev/nwb.schema.json -o nwb.schema.json | |
- name: Validate schema specification | |
run: | | |
validate_hdmf_spec spec -m nwb.schema.json |