-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 968 Bytes
/
validate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: '[validate] json schema validation'
on:
push:
branches: ["main"]
workflow_dispatch:
inputs:
use-cfg:
description: "branch of siibra-configuration to be checkout"
required: false
type: string
default: 'expmt_attr'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: FZJ-INM1-BDA/siibra-configurations
path: siibra-configurations
fetch-depth: 1
clean: True
ref: ${{ inputs.use-cfg || 'expmt_attr' }}
- run: |
pip install -r requirements.txt
- name: "Validate features"
run: |
python code/validate.py ./siibra-configurations/features/
- name: "Validate spaces"
run: |
python code/validate.py ./siibra-configurations/spaces/