Skip to content

Commit e2262a5

Browse files
committed
update slurm container image
1 parent f796a9c commit e2262a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/testslurm.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
env:
13-
DOCKER_IMAGE: mgxd/slurm:19.05.1
13+
DOCKER_IMAGE: giovtorres/docker-centos7-slurm:latest
1414

1515
steps:
1616
- name: Disable etelemetry
@@ -20,9 +20,7 @@ jobs:
2020
run: |
2121
docker pull $DOCKER_IMAGE
2222
# Have image running in background
23-
docker run `bash <(curl -s https://codecov.io/env)` -itd -h ernie --name slurm -v `pwd`:/pydra -e NO_ET=$NO_ET $DOCKER_IMAGE
24-
- name: Update python
25-
run: docker exec slurm bash -c "conda install python==3.8.15"
23+
docker run -it -h slurmctl --cap-add sys_admin -d --name slurm -v `pwd`:/pydra -e NO_ET=$NO_ET $DOCKER_IMAGE
2624
- name: Display previous jobs with sacct
2725
run: |
2826
echo "Allowing ports/daemons time to start" && sleep 10
@@ -40,7 +38,7 @@ jobs:
4038
docker exec slurm bash -c "echo $NO_ET"
4139
docker exec slurm bash -c "ls -la && echo list top level dir"
4240
docker exec slurm bash -c "ls -la /pydra && echo list pydra dir"
43-
docker exec slurm bash -c "pip install --upgrade pip && pip install -e /pydra[test] && python -c 'import pydra; print(pydra.__version__)'"
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__)'"
4442
- name: Run pytest
4543
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"
4644
- name: Upload to codecov

0 commit comments

Comments
 (0)