Skip to content

Commit 494fe54

Browse files
authored
Merge pull request #396 from nf-osi/patch/schematic-update
Patch/schematic update
2 parents a3266ee + 4b994c3 commit 494fe54

File tree

5 files changed

+70
-9
lines changed

5 files changed

+70
-9
lines changed

.github/workflows/schematic-ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: ${{ !contains(github.event.head_commit.message, '[skip schematic]') }}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.event.pull_request.head.ref }}
2222
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
@@ -45,27 +45,33 @@ jobs:
4545
# Additionally test PRs
4646
test:
4747
name: Test with schematic
48-
if: "!contains( github.event.pull_request.labels.*.name, 'skip tests')"
4948
needs: [build]
50-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-latest
5150
env:
5251
SCHEMATIC_SERVICE_ACCT_CREDS: ${{ secrets.SCHEMATIC_SERVICE_ACCT_CREDS }}
5352
permissions:
5453
pull-requests: write
5554
strategy:
5655
matrix:
57-
schematic-version: [23.9.1]
56+
schematic-version: [24.1.1]
5857

5958
steps:
60-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@v4
6160
with:
6261
ref: ${{ github.event.pull_request.head.ref }}
6362
fetch-depth: 1
6463

64+
- uses: actions/setup-python@v5
65+
with:
66+
python-version: '3.10.12'
67+
6568
- name: Setup schematic
6669
id: setup-schematic
67-
run: pip3 install schematicpy==${{ matrix.schematic-version }}
70+
run: pip install schematicpy==${{ matrix.schematic-version }}
6871

72+
- name: Sanity-check successful installation and version
73+
run: pip show schematicpy
74+
6975
- name: Test generate
7076
working-directory: tests/generate
7177
continue-on-error: true

NF.jsonld

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
},
1717
"sms:required" : "sms:false",
1818
"schema:rangeIncludes" : [ {
19+
"@id" : "bts:EutropicsPharmaceuticals"
20+
}, {
1921
"@id" : "bts:CincinnatiChildren'sHospitalMedicalCenter"
22+
}, {
23+
"@id" : "bts:MemorialSloaneKetteringCancerCenter"
24+
}, {
25+
"@id" : "bts:Dana-FarberCancerInstitute"
2026
}, {
2127
"@id" : "bts:MassachusettsGeneralHospital"
2228
}, {
@@ -109,6 +115,8 @@
109115
"@id" : "bts:VanAndelResearchInstitute"
110116
}, {
111117
"@id" : "bts:UniversityofCalifornia,Irvine"
118+
}, {
119+
"@id" : "bts:UniversityofCambridge"
112120
}, {
113121
"@id" : "bts:UniversityofNorthCarolina,Greensboro"
114122
}, {
@@ -11950,6 +11958,17 @@
1195011958
},
1195111959
"sms:displayName" : "CRISPR",
1195211960
"sms:required" : "sms:false"
11961+
}, {
11962+
"@id" : "bts:Dana-FarberCancerInstitute",
11963+
"@type" : "rdfs:Class",
11964+
"rdfs:comment" : "TBD",
11965+
"rdfs:label" : "Dana-FarberCancerInstitute",
11966+
"rdfs:subClassOf" : [ ],
11967+
"schema:isPartOf" : {
11968+
"@id" : "http://schema.biothings.io/"
11969+
},
11970+
"sms:displayName" : "Dana-Farber Cancer Institute",
11971+
"sms:required" : "sms:false"
1195311972
}, {
1195411973
"@id" : "bts:AlbertEinsteinCollegeofMedicine",
1195511974
"@type" : "rdfs:Class",
@@ -13776,6 +13795,17 @@
1377613795
},
1377713796
"sms:displayName" : "calcium retention capacity assay",
1377813797
"sms:required" : "sms:false"
13798+
}, {
13799+
"@id" : "bts:MemorialSloaneKetteringCancerCenter",
13800+
"@type" : "rdfs:Class",
13801+
"rdfs:comment" : "TBD",
13802+
"rdfs:label" : "MemorialSloaneKetteringCancerCenter",
13803+
"rdfs:subClassOf" : [ ],
13804+
"schema:isPartOf" : {
13805+
"@id" : "http://schema.biothings.io/"
13806+
},
13807+
"sms:displayName" : "Memorial Sloane Kettering Cancer Center",
13808+
"sms:required" : "sms:false"
1377913809
}, {
1378013810
"@id" : "bts:HS-PSS",
1378113811
"@type" : "rdfs:Class",
@@ -13985,6 +14015,17 @@
1398514015
},
1398614016
"sms:displayName" : "Rockefeller University",
1398714017
"sms:required" : "sms:false"
14018+
}, {
14019+
"@id" : "bts:UniversityofCambridge",
14020+
"@type" : "rdfs:Class",
14021+
"rdfs:comment" : "TBD",
14022+
"rdfs:label" : "UniversityofCambridge",
14023+
"rdfs:subClassOf" : [ ],
14024+
"schema:isPartOf" : {
14025+
"@id" : "http://schema.biothings.io/"
14026+
},
14027+
"sms:displayName" : "University of Cambridge",
14028+
"sms:required" : "sms:false"
1398814029
}, {
1398914030
"@id" : "bts:braingrowthmeasurement",
1399014031
"@type" : "rdfs:Class",
@@ -21861,6 +21902,17 @@
2186121902
},
2186221903
"sms:displayName" : "FLIPR high-throughput cellular screening",
2186321904
"sms:required" : "sms:false"
21905+
}, {
21906+
"@id" : "bts:EutropicsPharmaceuticals",
21907+
"@type" : "rdfs:Class",
21908+
"rdfs:comment" : "TBD",
21909+
"rdfs:label" : "EutropicsPharmaceuticals",
21910+
"rdfs:subClassOf" : [ ],
21911+
"schema:isPartOf" : {
21912+
"@id" : "http://schema.biothings.io/"
21913+
},
21914+
"sms:displayName" : "Eutropics Pharmaceuticals",
21915+
"sms:required" : "sms:false"
2186421916
}, {
2186521917
"@id" : "bts:Nf1-OPG",
2186621918
"@type" : "rdfs:Class",

modules/Other/Organization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
enums:
22
Institution:
33
permissible_values:
4+
Eutropics Pharmaceuticals:
45
Cincinnati Children's Hospital Medical Center:
56
meaning: https://ror.org/01hcyya48
7+
Memorial Sloane Kettering Cancer Center:
8+
Dana-Farber Cancer Institute:
69
Massachusetts General Hospital:
710
description: ''
811
University of Tennessee, Health Science Center:
@@ -95,6 +98,7 @@ enums:
9598
description: ''
9699
University of California, Irvine:
97100
description: ''
101+
University of Cambridge:
98102
University of North Carolina, Greensboro:
99103
description: ''
100104
University of Toledo:

tests/generate/basic_templates.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ mkdir -p $LOG_DIR
3737
for i in ${!TEMPLATES[@]}
3838
do
3939
echo ">>>>>>> Generating ${TEMPLATES[$i]}"
40-
schematic manifest --config config.yml \
41-
get -dt ${TEMPLATES[$i]} --title ${TEMPLATES[$i]} -s | tee $LOG_DIR/${TEMPLATES[$i]%.*}_log.txt
40+
schematic manifest --config ./config.yml get -dt "${TEMPLATES[$i]}" --title "${TEMPLATES[$i]}" -s | tee $LOG_DIR/${TEMPLATES[$i]%.*}_log
4241
sleep $SLEEP_THROTTLE
4342
done
4443

tests/test-suite-report.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ md_link <- function (url) {
2727

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

0 commit comments

Comments
 (0)