update regex to allow for suffixed semantic versioning #62
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 JSON Schemas | |
on: | |
push: | |
paths: | |
- "**/ontology-assets/**.json" | |
- "**/ontology-assets/**.gz" | |
- "**/asset-schemas/**.json" | |
branches-ignore: | |
- main | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Python cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: install requirements | |
run: | | |
cd ./tools/ontology-builder/ | |
pip install -r requirements.txt | |
- name: validate json schemas | |
run: | | |
python3 ./tools/ontology-builder/src/validate_json_schemas.py |