Skip to content

Commit 1cdea7d

Browse files
committed
fix urllib error in testslurm.yml
1 parent 4f0e842 commit 1cdea7d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/testslurm.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ jobs:
1515
steps:
1616
- name: Disable etelemetry
1717
run: echo "NO_ET=TRUE" >> $GITHUB_ENV
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v2
1919
- name: Pull docker image
2020
run: |
2121
docker pull $DOCKER_IMAGE
22-
# Have image running in background
22+
# Have image running in the background
2323
docker run -it -h slurmctl --cap-add sys_admin -d --name slurm -v `pwd`:/pydra -e NO_ET=$NO_ET $DOCKER_IMAGE
2424
- name: Display previous jobs with sacct
2525
run: |
2626
echo "Allowing ports/daemons time to start" && sleep 10
2727
docker exec slurm bash -c "sacctmgr -i add cluster name=linux \
2828
&& supervisorctl restart slurmdbd \
2929
&& supervisorctl restart slurmctld \
30-
&& sacctmgr -i add account none,test Cluster=linux Description='none' Organization='none'"
30+
&& sacctmgr -i add account none,test Cluster=linux Description='none'"
3131
docker exec slurm bash -c "sacct && sinfo && squeue" 2&> /dev/null
3232
if [ $? -ne 0 ]; then
3333
echo "Slurm docker image error"
@@ -38,9 +38,10 @@ jobs:
3838
docker exec slurm bash -c "echo $NO_ET"
3939
docker exec slurm bash -c "ls -la && echo list top level dir"
4040
docker exec slurm bash -c "ls -la /pydra && echo list pydra dir"
41-
docker exec slurm bash -c "pip3.9 install --upgrade pip && pip3.9 install -e /pydra[test] && python3.9 -c 'import pydra; print(pydra.__version__)'"
41+
docker exec slurm bash -c "pip3.9 install --upgrade pip && pip3.9 install -e /pydra[test] && pip3.9 install urllib3==1.26.6 && python3.9 -c 'import pydra; print(pydra.__version__)'"
4242
- name: Run pytest
43-
run: docker exec slurm bash -c "pytest --color=yes -vs -n auto --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'"
43+
run: |
44+
docker exec slurm bash -c "pytest --color=yes -vs -n auto --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'"
4445
- name: Upload to codecov
4546
run: |
4647
docker exec slurm bash -c "codecov --root /pydra -f /pydra/cov.xml -F unittests"

0 commit comments

Comments
 (0)