Skip to content

Commit 9d1ca95

Browse files
committed
fixed test job deps
1 parent dc12f4f commit 9d1ca95

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,51 @@ jobs:
212212
docker exec slurm bash -c "codecov --root /pydra -f /pydra/cov.xml -F unittests"
213213
docker rm -f slurm
214214
215+
# test-sge:
216+
# needs: ['build']
217+
# strategy:
218+
# matrix:
219+
# python-version: [3.11.5]
220+
# fail-fast: false
221+
# runs-on: ubuntu-latest
222+
# env:
223+
# DOCKER_IMAGE: kgutwin/simple-sge
224+
# steps:
225+
# - name: Disable etelemetry
226+
# run: echo "NO_ET=TRUE" >> $GITHUB_ENV
227+
# - uses: actions/checkout@v4
228+
# - name: Fetch tags
229+
# run: git fetch --prune --unshallow
230+
# - name: Pull docker image
231+
# run: |
232+
# docker pull $DOCKER_IMAGE
233+
# # Have image running in the background
234+
# docker run `bash <(curl -s https://codecov.io/env)` -itd -h sgectl --cap-add sys_admin -d --name sge -v `pwd`:/pydra -e NO_ET=$NO_ET $DOCKER_IMAGE
235+
# - name: Configure SGE
236+
# run: |
237+
# echo "Allowing ports/daemons time to start" && sleep 10
238+
# docker exec sge bash -c "source /etc/profile.d/sge_settings.sh && qconf -as sgectl"
239+
# docker exec sge bash -c "source /etc/profile.d/sge_settings.sh && qconf -mattr queue slots 4 all.q"
240+
# docker exec sge bash -c "source /etc/profile.d/sge_settings.sh && qstat"
241+
# - name: Setup Python
242+
# run: |
243+
# docker exec sge bash -c "echo $NO_ET"
244+
# docker exec sge bash -c "ls -la && echo list top level dir"
245+
# docker exec sge bash -c "ls -la /pydra && echo list pydra dir"
246+
# if [[ "${{ matrix.python-version }}" == "3.11.5" ]]; then
247+
# docker exec sge bash -c "CONFIGURE_OPTS=\"-with-openssl=/opt/openssl\" pyenv install -v 3.11.5"
248+
# fi
249+
# docker exec sge bash -c "pyenv global ${{ matrix.python-version }}"
250+
# docker exec sge bash -c "pip install --upgrade pip && pip install -e /pydra[test,psij] && python -c 'import pydra.engine; print(pydra.engine.__version__)'"
251+
# - name: Run pytest
252+
# run: |
253+
# docker exec sge bash -c "pytest /pydra/pydra/engine/tests/test_submitter.py --rootdir /pydra/pydra --only-worker=sge --color=yes -vs --cov pydra --cov-config /pydra/.coveragerc --cov-report xml:/pydra/cov.xml"
254+
# - name: Upload to codecov
255+
# run: |
256+
# docker exec sge bash -c "pip install urllib3==1.26.6"
257+
# docker exec sge bash -c "codecov --root /pydra -f /pydra/cov.xml -F unittests"
258+
# docker rm -f sge
259+
215260
build-docs:
216261
needs: ['build']
217262
runs-on: ubuntu-latest
@@ -283,7 +328,7 @@ jobs:
283328
path: docs/build/html
284329

285330
deploy:
286-
needs: [build-docs, test, test-dask, test-singularity, test-slurm]
331+
needs: [build-docs, test, test-workers, test-singularity, test-slurm]
287332
runs-on: ubuntu-latest
288333
steps:
289334
- name: Download dist

0 commit comments

Comments
 (0)