Skip to content

Commit 3a7bbdf

Browse files
committed
relaxed slurm tests to whole package
1 parent c8cb96c commit 3a7bbdf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/testslurm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Run pytest
5555
run: |
5656
docker exec slurm bash -c "find /pydra -name '*.py'"
57-
docker exec slurm bash -c "pytest /pydra/pydra/engine/tests/test_workflow.py --color=yes -vs --cov pydra --cov-config /pydra/.coveragerc --cov-report xml:/pydra/cov.xml --doctest-modules /pydra/pydra/ -k 'not test_audit_prov and not test_audit_prov_messdir_1 and not test_audit_prov_messdir_2 and not test_audit_prov_wf and not test_audit_all'"
57+
docker exec slurm bash -c "pytest /pydra/pydra --color=yes -vs --cov pydra --cov-config /pydra/.coveragerc --cov-report xml:/pydra/cov.xml --doctest-modules /pydra/pydra/ -k 'not test_audit_prov and not test_audit_prov_messdir_1 and not test_audit_prov_messdir_2 and not test_audit_prov_wf and not test_audit_all'"
5858
- name: Upload to codecov
5959
run: |
6060
docker exec slurm bash -c "pip install urllib3==1.26.6"

pydra/engine/tests/test_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4413,7 +4413,7 @@ def Worky(text):
44134413

44144414
worky = Worky().split(text=text)
44154415

4416-
outputs = worky(worker=plugin_parallel, n_procs=6)
4416+
outputs = worky(worker=plugin_parallel)
44174417

44184418
assert outputs.out1[0] == "test" and outputs.out1[0] == "test"
44194419

@@ -4486,11 +4486,11 @@ def WorkyPassOdds(x):
44864486
print("Starting run 1")
44874487
with pytest.raises(RuntimeError):
44884488
# Must be cf to get the error from all tasks, otherwise will only get the first error
4489-
worky(worker=plugin_parallel, cache_dir=tmp_path, n_procs=5)
4489+
worky(worker=plugin_parallel, cache_dir=tmp_path)
44904490

44914491
print("Starting run 2")
44924492
with pytest.raises(RuntimeError):
4493-
worky(worker=plugin_parallel, cache_dir=tmp_path, n_procs=5)
4493+
worky(worker=plugin_parallel, cache_dir=tmp_path)
44944494

44954495
out, err = capfd.readouterr()
44964496
stdout_lines = out.splitlines()

0 commit comments

Comments
 (0)