Skip to content

Commit 3a7d36b

Browse files
authored
Update GitHub action
1 parent 75a5082 commit 3a7d36b

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
name: Validate schema
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
workflow_dispatch:
49

510
jobs:
611
validate:
712
runs-on: ubuntu-latest
813
steps:
9-
- name: Checkout repo
10-
uses: actions/checkout@v4
14+
- name: Checkout repo
15+
uses: actions/checkout@v4
1116

12-
- name: Set up Python 3.12
13-
uses: actions/setup-python@v4
14-
with:
15-
python-version: "3.12"
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.12"
1621

17-
- name: Install dev branch of HDMF
18-
run: pip install git+https://github.com/hdmf-dev/hdmf.git
22+
- name: Install dev branch of HDMF
23+
run: pip install git+https://github.com/hdmf-dev/hdmf.git
1924

20-
- name: Validate schema specification
21-
run: validate_hdmf_spec core -m nwb.schema.json
25+
- name: Validate schema specification
26+
run: validate_hdmf_spec core -m nwb.schema.json

0 commit comments

Comments
 (0)