This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor CI. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add shell: bash * Reusable workflows? * Simplify? * Rename steps? * Old names but without needs * Descriptions trip it up. * Refactor push-main too * Nicer names of two main workflows --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
43d88c6
commit 9c8644c
Showing
5 changed files
with
130 additions
and
133 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: Check LinkML schemas | ||
on: | ||
workflow_call: | ||
|
||
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 | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U setuptools wheel | ||
pip install -r requirements.txt | ||
- name: Check environment | ||
shell: bash | ||
run: | | ||
pip freeze | ||
- name: Run LinkML generators | ||
shell: bash | ||
run: | | ||
for f in $(ls schemas/*); do | ||
gen-pydantic -vvv --stacktrace $f | ||
gen-json-schema -vvv --stacktrace $f | ||
done | ||
- name: Validate examples | ||
shell: bash | ||
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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: CI PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
# 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: | ||
|
||
call-check-linkml-schemas: | ||
uses: ./.github/workflows/check-linkml-schemas.yml | ||
|
||
call-build-docs: | ||
needs: [call-check-linkml-schemas] | ||
uses: ./.github/workflows/build-docs.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: CI main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
|
||
call-check-linkml-schemas: | ||
uses: ./.github/workflows/check-linkml-schemas.yml | ||
|
||
call-build-docs: | ||
needs: [call-check-linkml-schemas] | ||
uses: ./.github/workflows/build-docs.yml | ||
|
||
deploy-pages: | ||
runs-on: ubuntu-latest | ||
needs: [call-build-docs] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: public-main | ||
path: public/main | ||
|
||
- uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
keep_files: true |