Skip to content

Commit 10548b0

Browse files
authored
check for all python versions for the container
1 parent 5168155 commit 10548b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/testslurm.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88

99
jobs:
1010
build:
11+
strategy:
12+
matrix:
13+
python-version: [3.8.16, 3.9.16, 3.10.9, 3.11.1]
14+
fail-fast: false
1115
runs-on: ubuntu-latest
1216
env:
1317
DOCKER_IMAGE: adi611/docker-centos7-slurm:23.02.1
@@ -35,12 +39,13 @@ jobs:
3539
docker exec slurm bash -c "echo $NO_ET"
3640
docker exec slurm bash -c "ls -la && echo list top level dir"
3741
docker exec slurm bash -c "ls -la /pydra && echo list pydra dir"
38-
docker exec slurm bash -c "pip3 install --upgrade pip && pip3 install -e /pydra[test] && python3 -c 'import pydra; print(pydra.__version__)'"
42+
docker exec slurm bash -c "pyenv global ${{ matrix.python-version }}"
43+
docker exec slurm bash -c "pip install --upgrade pip && pip install -e /pydra[test] && python -c 'import pydra; print(pydra.__version__)'"
3944
- name: Run pytest
4045
run: |
4146
docker exec slurm bash -c "pytest --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'"
4247
- name: Upload to codecov
4348
run: |
44-
docker exec slurm bash -c "pip3 install urllib3==1.26.6"
49+
docker exec slurm bash -c "pip install urllib3==1.26.6"
4550
docker exec slurm bash -c "codecov --root /pydra -f /pydra/cov.xml -F unittests"
4651
docker rm -f slurm

0 commit comments

Comments
 (0)