-
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.
chore: update ontology decendant mappings (#162)
- Loading branch information
1 parent
2e9d483
commit 12def74
Showing
6 changed files
with
64 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#This is a github actions that run every monday at 12am. It will run generate_decendant_mapping.py off the main | ||
# github branch and open a pull request to commit the new ontology_decendant files to cellxgene-ontology-guide | ||
|
||
name: Generate Ontology Decendant Mappings | ||
name: Generate Ontology Descendant Mappings | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
@@ -20,7 +20,7 @@ permissions: | |
pull-requests: write | ||
|
||
jobs: | ||
generate-ontology-decendant-mappings: | ||
generate-ontology-descendant-mappings: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
|
@@ -45,13 +45,9 @@ jobs: | |
git config user.email [email protected] | ||
- name: install requirements | ||
run: | | ||
cd ./tools/ontology-builder/ | ||
cd ./tools/ontology-builder/ | ||
pip install -r requirements.txt | ||
- name: install local cellxgene-ontology-guide api version #TODO: this or the pypi version? | ||
run: | | ||
cd ./api/python | ||
make install | ||
- name: generate ontology decendant mappings | ||
- name: generate ontology descendant mappings | ||
run: | | ||
python3 tools/ontology-builder/src/descendent_mapping_generator.py | ||
- name: Create Pull Request | ||
|
@@ -60,9 +56,9 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
add-paths: | | ||
./ontology-assets/*.json | ||
commit-message: "chore: update ontology decendant mappings" | ||
title: "chore: update ontology decendant mappings" | ||
branch: update-ontology-decendant-mappings | ||
commit-message: "chore: update ontology descendant mappings" | ||
title: "chore: update ontology descendant mappings" | ||
branch: update-ontology-descendant-mappings | ||
base: main | ||
signoff: true | ||
draft: false |
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,25 @@ | ||
name: Tag 'Latest' Ontology Assets | ||
|
||
on: | ||
push: | ||
paths: | ||
- "**/ontology-assets/**descendants.json" | ||
- "**/ontology-assets/**list.json" | ||
- "**/ontology-assets/ontology_info.json" | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tag-latest-release: | ||
runs-on: [ubuntu-latest] | ||
needs: publish-pypi-package | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
- name: Reassign 'latest' tag | ||
run: | | ||
git tag -f latest | ||
git push origin latest |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cellxgene-ontology-guide | ||
owlready2==0.45 | ||
jsonschema>=4.21.1, <5 | ||
semantic-version>=2.10.0, <3 | ||
referencing>=0.33 | ||
../../api/python |