Skip to content

Commit c6d6dcc

Browse files
authored
[FIX] update CI validation (#503)
* update validation * rm link * comment failing part of CI for now
1 parent 125993b commit c6d6dcc

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ jobs:
2121
with:
2222
python-version: 3.12
2323
- name: Install dependencies
24-
# TODO update to install from the latest version on reproschema
25-
# once https://github.com/ReproNim/reproschema-py/pull/40 has been merged and a new release has been made.
24+
# TODO This installs reproschema from source and not from pypi
25+
# This may not be the optimal way of doing it.
2626
run: |
2727
python -m pip install --upgrade pip setuptools
28-
pip install git+https://github.com/Remi-Gau/reproschema-py.git@skip
28+
pip install git+https://github.com/ReproNim/reproschema-py.git
2929
- name: Test with pyshacl
3030
run: |
3131
python scripts/jsonParser.py
3232
reproschema validate examples
33-
- name: Make a release
34-
run: |
35-
python scripts/makeRelease.py ci-release
36-
pip install pytablewriter
37-
python scripts/editProperties.py ci-release
33+
# TODO adapt make release
34+
# TODO use mkdocs macro to update doc content
35+
# - name: Make a release
36+
# run: |
37+
# python scripts/makeRelease.py ci-release
38+
# pip install pytablewriter
39+
# python scripts/editProperties.py ci-release

docs/project-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The ReproSchema is like a blueprint for research projects, ensuring everyone col
3131
- **Activity Level:** At this stage, an entire survey or tool, made up of many items, is grouped together as an "Activity." It gives a complete overview of what the survey involves.
3232
- **Protocols Level:** The highest level, a "Protocol," bundles together all the activities a participant will do in a study, providing a comprehensive plan.
3333

34-
- **[Validation](https://github.com/ReproNim/reproschema/tree/main/validation):** The schema uses special standards (like SHACL files) to make sure the data and forms are up to standard and consistent.
34+
- **Validation:** The schema uses special standards (like SHACL files) to make sure the data and forms are up to standard and consistent.
3535

3636
- **Context Files:** These files ([`contexts`](https://github.com/ReproNim/reproschema/tree/master/contexts)and [`terms`](https://github.com/ReproNim/reproschema/tree/master/terms)) specify user-interface details and enhance schema flexibility. They define elements like input types, visibility conditions, and response options, supporting a tailored user experience. Additionally, they enable internationalization and multiple language support for broad applicability.
3737

examples/activities/items/item2.jsonld

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"@type": "VideoObject",
1515
"contentUrl": "http://media.freesound.org/data/0/previews/719__elmomo__12oclock_girona_preview.mp4"
1616
},
17-
"imageUrl": "http://example.com/sample-image.jpg",
1817
"ui": {
1918
"inputType": "float"
2019
},

scripts/jsonParser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
if os.path.basename(root) in schema_dirs:
88
for name in files:
99
with open(os.path.join(root, name)) as fp:
10+
print(f" trying parsing {root}/{name} as json")
1011
try:
1112
tested += 1
1213
json.load(fp)

scripts/makeRelease.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
def create_release(version):
1111
# read all the terms
1212
terms = []
13-
for root, dirs, files in os.walk("terms"):
13+
for root, _, files in os.walk("terms"):
1414
for name in files:
1515
terms.extend(json.loads(to_newformat(os.path.join(root, name), "jsonld")))
1616

0 commit comments

Comments
 (0)