8000 Update DOCKER_IMAGE tag in testslurm.yml by adi611 · Pull Request #697 · nipype/pydra · GitHub
[go: up one dir, main page]

Skip to content

Update DOCKER_IMAGE tag in testslurm.yml #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 18, 2023
21 changes: 13 additions & 8 deletions .github/workflows/testslurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ on:

jobs:
build:
strategy:
matrix:
python-version: [3.8.16, 3.9.16, 3.10.9, 3.11.5]
fail-fast: false
runs-on: ubuntu-latest
env:
DOCKER_IMAGE: giovtorres/docker-centos7-slurm:latest
DOCKER_IMAGE: adi611/docker-centos7-slurm:23.02.1

steps:
- name: Disable etelemetry
Expand All @@ -24,10 +28,7 @@ jobs:
- name: Display previous jobs with sacct
run: |
echo "Allowing ports/daemons time to start" && sleep 10
docker exec slurm bash -c "sacctmgr -i add cluster name=linux \
&& supervisorctl restart slurmdbd \
&& supervisorctl restart slurmctld \
&& sacctmgr -i add account none,test Cluster=linux Description='none' Organization='none'"
docker exec slurm bash -c "sacctmgr -i add account none,test Cluster=linux Description='none' Organization='none'"
docker exec slurm bash -c "sacct && sinfo && squeue" 2&> /dev/null
if [ $? -ne 0 ]; then
echo "Slurm docker image error"
Expand All @@ -38,12 +39,16 @@ jobs:
docker exec slurm bash -c "echo $NO_ET"
docker exec slurm bash -c "ls -la && echo list top level dir"
docker exec slurm bash -c "ls -la /pydra && echo list pydra dir"
docker exec slurm bash -c "pip3.9 install --upgrade pip && pip3.9 install -e /pydra[test] && python3.9 -c 'import pydra; print(pydra.__version__)'"
if [[ "${{ matrix.python-version }}" == "3.11.5" ]]; then
docker exec slurm bash -c "CONFIGURE_OPTS=\"-with-openssl=/opt/openssl\" pyenv install -v 3.11.5"
fi
docker exec slurm bash -c "pyenv global ${{ matrix.python-version }}"
docker exec slurm bash -c "pip install --upgrade pip && pip install -e /pydra[test] && python -c 'import pydra; print(pydra.__version__)'"
- name: Run pytest
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'"
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'"
- name: Upload to codecov
run: |
docker exec slurm bash -c "pip3.9 install urllib3==1.26.6"
docker exec slurm bash -c "pip install urllib3==1.26.6"
docker exec slurm bash -c "codecov --root /pydra -f /pydra/cov.xml -F unittests"
docker rm -f slurm
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "flit_scm:buildapi"
name = "pydra"
description = "Pydra dataflow engine"
readme = "README.rst"
requires-python = ">=3.8"
requires-python = ">=3.8, !=3.11.1"
dependencies = [
"attrs >=19.1.0",
"cloudpickle >=2.0.0",
Expand Down
0