Skip to content

Commit b49198a

Browse files
committed
fix schema path
1 parent 5f6e5af commit b49198a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- name: Install dependencies
138138
run: |
139139
python -m pip install --upgrade pip setuptools py
140-
python -m pip install twine wheel coveralls jsonschema requirements-builder
140+
python -m pip install twine wheel coveralls requirements-builder
141141
python -m pip install --force-reinstall -r requirements.txt
142142
python -m pip install -e .[tests]
143143
- name: Initialise hepdata

tests/analysis_schema_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@
2323
# as an Intergovernmental Organization or submit itself to any jurisdiction.
2424
import json
2525
import jsonschema
26+
import os
2627

2728
def test_analysis_json_schema():
28-
schema_file_name = "../hepdata/templates/analysis_schema.json"
29-
test_file_name = "test_data/analysis_example.json"
29+
base_dir = os.path.dirname(os.path.realpath(__file__))
30+
schema_file_name = os.path.join(base_dir, "..", "hepdata", "templates", "analysis_schema.json")
31+
test_file_name = os.path.join(base_dir, "test_data", "analysis_example.json")
3032

3133
with open(schema_file_name) as f:
3234
schema = json.load(f)

0 commit comments

Comments
 (0)