Skip to content

Commit b4e36bb

Browse files
committed
Only run tests on py3.11 (conda was overwriting this anyway). Fix env
1 parent 860307b commit b4e36bb

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/pytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.10", "3.11"]
17+
python-version: ["3.11"]
1818

1919
steps:
2020
- uses: actions/checkout@v4

tests/integration_tests/test_scripts.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def run_transferable_script(project_root):
4343
]
4444

4545
def runner(extra_args):
46+
env = os.environ.copy()
47+
env["ORBFORMER_PICKLE_LOADING"] = "1"
4648
result = subprocess.run(
4749
[
4850
"python",
@@ -52,7 +54,7 @@ def runner(extra_args):
5254
],
5355
cwd=project_root,
5456
capture_output=True,
55-
env={"ORBFORMER_PICKLE_LOADING": "1"},
57+
env=env,
5658
)
5759
if result.returncode != 0:
5860
raise OneQMCProcessError(result.stderr.decode())
@@ -82,6 +84,8 @@ def run_density_script(project_root):
8284
]
8385

8486
def runner(extra_args):
87+
env = os.environ.copy()
88+
env["ORBFORMER_PICKLE_LOADING"] = "1"
8589
result = subprocess.run(
8690
[
8791
"python",
@@ -91,7 +95,7 @@ def runner(extra_args):
9195
],
9296
cwd=project_root,
9397
capture_output=True,
94-
env={"ORBFORMER_PICKLE_LOADING": "1"},
98+
env=env,
9599
)
96100
if result.returncode != 0:
97101
raise OneQMCProcessError(result.stderr.decode())

0 commit comments

Comments
 (0)