Skip to content

Commit

Permalink
Merge pull request #396 from nf-osi/patch/schematic-update
Browse files Browse the repository at this point in the history
Patch/schematic update
  • Loading branch information
anngvu authored Feb 16, 2024
2 parents a3266ee + 4b994c3 commit 494fe54
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 9 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/schematic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[skip schematic]') }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
Expand Down Expand Up @@ -45,27 +45,33 @@ jobs:
# Additionally test PRs
test:
name: Test with schematic
if: "!contains( github.event.pull_request.labels.*.name, 'skip tests')"
needs: [build]
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
SCHEMATIC_SERVICE_ACCT_CREDS: ${{ secrets.SCHEMATIC_SERVICE_ACCT_CREDS }}
permissions:
pull-requests: write
strategy:
matrix:
schematic-version: [23.9.1]
schematic-version: [24.1.1]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 1

- uses: actions/setup-python@v5
with:
python-version: '3.10.12'

- name: Setup schematic
id: setup-schematic
run: pip3 install schematicpy==${{ matrix.schematic-version }}
run: pip install schematicpy==${{ matrix.schematic-version }}

- name: Sanity-check successful installation and version
run: pip show schematicpy

- name: Test generate
working-directory: tests/generate
continue-on-error: true
Expand Down
52 changes: 52 additions & 0 deletions NF.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
},
"sms:required" : "sms:false",
"schema:rangeIncludes" : [ {
"@id" : "bts:EutropicsPharmaceuticals"
}, {
"@id" : "bts:CincinnatiChildren'sHospitalMedicalCenter"
}, {
"@id" : "bts:MemorialSloaneKetteringCancerCenter"
}, {
"@id" : "bts:Dana-FarberCancerInstitute"
}, {
"@id" : "bts:MassachusettsGeneralHospital"
}, {
Expand Down Expand Up @@ -109,6 +115,8 @@
"@id" : "bts:VanAndelResearchInstitute"
}, {
"@id" : "bts:UniversityofCalifornia,Irvine"
}, {
"@id" : "bts:UniversityofCambridge"
}, {
"@id" : "bts:UniversityofNorthCarolina,Greensboro"
}, {
Expand Down Expand Up @@ -11950,6 +11958,17 @@
},
"sms:displayName" : "CRISPR",
"sms:required" : "sms:false"
}, {
"@id" : "bts:Dana-FarberCancerInstitute",
"@type" : "rdfs:Class",
"rdfs:comment" : "TBD",
"rdfs:label" : "Dana-FarberCancerInstitute",
"rdfs:subClassOf" : [ ],
"schema:isPartOf" : {
"@id" : "http://schema.biothings.io/"
},
"sms:displayName" : "Dana-Farber Cancer Institute",
"sms:required" : "sms:false"
}, {
"@id" : "bts:AlbertEinsteinCollegeofMedicine",
"@type" : "rdfs:Class",
Expand Down Expand Up @@ -13776,6 +13795,17 @@
},
"sms:displayName" : "calcium retention capacity assay",
"sms:required" : "sms:false"
}, {
"@id" : "bts:MemorialSloaneKetteringCancerCenter",
"@type" : "rdfs:Class",
"rdfs:comment" : "TBD",
"rdfs:label" : "MemorialSloaneKetteringCancerCenter",
"rdfs:subClassOf" : [ ],
"schema:isPartOf" : {
"@id" : "http://schema.biothings.io/"
},
"sms:displayName" : "Memorial Sloane Kettering Cancer Center",
"sms:required" : "sms:false"
}, {
"@id" : "bts:HS-PSS",
"@type" : "rdfs:Class",
Expand Down Expand Up @@ -13985,6 +14015,17 @@
},
"sms:displayName" : "Rockefeller University",
"sms:required" : "sms:false"
}, {
"@id" : "bts:UniversityofCambridge",
"@type" : "rdfs:Class",
"rdfs:comment" : "TBD",
"rdfs:label" : "UniversityofCambridge",
"rdfs:subClassOf" : [ ],
"schema:isPartOf" : {
"@id" : "http://schema.biothings.io/"
},
"sms:displayName" : "University of Cambridge",
"sms:required" : "sms:false"
}, {
"@id" : "bts:braingrowthmeasurement",
"@type" : "rdfs:Class",
Expand Down Expand Up @@ -21861,6 +21902,17 @@
},
"sms:displayName" : "FLIPR high-throughput cellular screening",
"sms:required" : "sms:false"
}, {
"@id" : "bts:EutropicsPharmaceuticals",
"@type" : "rdfs:Class",
"rdfs:comment" : "TBD",
"rdfs:label" : "EutropicsPharmaceuticals",
"rdfs:subClassOf" : [ ],
"schema:isPartOf" : {
"@id" : "http://schema.biothings.io/"
},
"sms:displayName" : "Eutropics Pharmaceuticals",
"sms:required" : "sms:false"
}, {
"@id" : "bts:Nf1-OPG",
"@type" : "rdfs:Class",
Expand Down
4 changes: 4 additions & 0 deletions modules/Other/Organization.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
enums:
Institution:
permissible_values:
Eutropics Pharmaceuticals:
Cincinnati Children's Hospital Medical Center:
meaning: https://ror.org/01hcyya48
Memorial Sloane Kettering Cancer Center:
Dana-Farber Cancer Institute:
Massachusetts General Hospital:
description: ''
University of Tennessee, Health Science Center:
Expand Down Expand Up @@ -95,6 +98,7 @@ enums:
description: ''
University of California, Irvine:
description: ''
University of Cambridge:
University of North Carolina, Greensboro:
description: ''
University of Toledo:
Expand Down
3 changes: 1 addition & 2 deletions tests/generate/basic_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ mkdir -p $LOG_DIR
for i in ${!TEMPLATES[@]}
do
echo ">>>>>>> Generating ${TEMPLATES[$i]}"
schematic manifest --config config.yml \
get -dt ${TEMPLATES[$i]} --title ${TEMPLATES[$i]} -s | tee $LOG_DIR/${TEMPLATES[$i]%.*}_log.txt
schematic manifest --config ./config.yml get -dt "${TEMPLATES[$i]}" --title "${TEMPLATES[$i]}" -s | tee $LOG_DIR/${TEMPLATES[$i]%.*}_log
sleep $SLEEP_THROTTLE
done

Expand Down
2 changes: 1 addition & 1 deletion tests/test-suite-report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ md_link <- function (url) {

```{r parse-generation-logs, echo=FALSE}
gen_logs <- list.files("generate/logs", full.names = TRUE)
templates <- gsub("_.*", "", basename(gen_logs))
templates <- gsub("_log", "", basename(gen_logs))
gen_test_results <- lapply(gen_logs, readLines)
gen_test_links <- sapply(gen_test_results, md_link)
gen_test_reaction <- sapply(lengths(gen_test_results), test_reaction)
Expand Down

0 comments on commit 494fe54

Please sign in to comment.