forked from ga4gh/vrs
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 995 Bytes
/
ci.yml
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
36
37
38
39
40
41
name: CI
on:
push:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -r .requirements.txt --pre
- name: Build jsonschema
run: |
cd schema
make all
- name: Validate jsonschemas are valid
run: |
for schema_f in schema/vrs/json/*; do
python -c "import json, jsonschema; jsonschema.Draft202012Validator.check_schema(json.load(open('$schema_f')))"
done
- name: Build HTML
run: |
# -W is too noisy as it treats all warnings as errors and we have a lot of warnings
# SPHINXOPTS='-W --keep-going' make html
make html 2>&1 | grep -E "ERROR|CRITICAL"