Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #78

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #78

Workflow file for this run

---
name: CI tests
on:
pull_request:
push:
branches:
- master
# Cancel running workflows when additional changes are pushed
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-linkml-schemas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: |
requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install -r requirements.txt
pip freeze
- name: Run LinkML generators
run: |
for f in $(ls schemas/*); do
gen-pydantic -vvv --stacktrace $f
gen-json-schema -vvv --stacktrace $f
done
- name: Validate examples
run: |
for f in $(ls examples/extractor/*.yml); do
linkml-validate -s schemas/extractor.yml -C Extractor $f
done
for f in $(ls examples/filetype/*.yml); do
linkml-validate -s schemas/filetype.yml -C FileType $f
done