Skip to content

Commit 6bfdb0d

Browse files
committed
reinstated separate singularity test job
1 parent a8fdafd commit 6bfdb0d

File tree

1 file changed

+59
-30
lines changed

1 file changed

+59
-30
lines changed

.github/workflows/ci-cd.yml

Lines changed: 59 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,6 @@ jobs:
5555
fail-fast: false
5656
runs-on: ${{ matrix.os }}
5757
steps:
58-
- name: Set env for singularity
59-
run: echo "RELEASE_VERSION=v3.7.1" >> $GITHUB_ENV
60-
- name: Disable etelemetry
61-
run: echo "NO_ET=TRUE" >> $GITHUB_ENV
62-
- name: Setup Singularity
63-
uses: actions/checkout@v4
64-
with:
65-
repository: hpcng/singularity
66-
ref: 'v3.7.1'
67-
path: 'singularity'
68-
- name: Setup GO
69-
uses: actions/setup-go@v5
70-
with:
71-
go-version: '^1.13'
72-
- name: Install OS deps
73-
run: |
74-
sudo apt-get update
75-
sudo apt-get install flawfinder squashfs-tools uuid-dev libuuid1 libffi-dev libssl-dev libssl1.1 \
76-
libarchive-dev libgpgme11-dev libseccomp-dev wget gcc make pkg-config -y
77-
- name: Build
78-
run: |
79-
cd singularity
80-
./mconfig --without-suid -p /usr/local/
81-
make -C ./builddir
82-
sudo make -C ./builddir install
83-
cd ..
84-
- name: Echo singularity version
85-
run: |
86-
echo ${{ github.ref }}
87-
singularity --version
8858
- name: Fetch repository
8959
uses: actions/checkout@v4
9060
- name: Fetch tags
@@ -99,6 +69,8 @@ jobs:
9969
run: pip install .[test,psij,dask]
10070
- name: Print version
10171
run: python -c "import pydra.engine; print(pydra.engine.__version__)"
72+
- name: Disable etelemetry
73+
run: echo "NO_ET=TRUE" >> $GITHUB_ENV
10274
- name: Pytest
10375
run: |
10476
pytest -vs -n auto pydra --doctest-modules --with-psij --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml
@@ -133,6 +105,63 @@ jobs:
133105
- name: Upload to codecov
134106
run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW
135107

108+
test-singularity:
109+
needs: ['build']
110+
runs-on: ubuntu-22.04
111+
strategy:
112+
matrix:
113+
python-version: ['3.11', '3.12', '3.13']
114+
fail-fast: False
115+
steps:
116+
- name: Set env
117+
run: |
118+
echo "RELEASE_VERSION=v3.7.1" >> $GITHUB_ENV
119+
echo "NO_ET=TRUE" >> $GITHUB_ENV
120+
- name: Setup Singularity
121+
uses: actions/checkout@v4
122+
with:
123+
repository: hpcng/singularity
124+
ref: 'v3.7.1'
125+
path: 'singularity'
126+
- name: Setup GO
127+
uses: actions/setup-go@v5
128+
with:
129+
go-version: '^1.13'
130+
- name: Install OS deps
131+
run: |
132+
sudo apt-get update
133+
sudo apt-get install flawfinder squashfs-tools uuid-dev libuuid1 libffi-dev libssl-dev libssl1.1 \
134+
libarchive-dev libgpgme11-dev libseccomp-dev wget gcc make pkg-config -y
135+
- name: Build
136+
run: |
137+
cd singularity
138+
./mconfig --without-suid -p /usr/local/
139+
make -C ./builddir
140+
sudo make -C ./builddir install
141+
cd ..
142+
- name: Echo singularity version
143+
run: |
144+
echo ${{ github.ref }}
145+
singularity --version
146+
- name: Set up Python ${{ matrix.python-version }}
147+
uses: actions/setup-python@v5
148+
with:
149+
python-version: ${{ matrix.python-version }}
150+
- name: Update build tools
151+
run: python -m pip install --upgrade pip
152+
- name: Checkout Pydra repo
153+
uses: actions/checkout@v4
154+
with:
155+
repository: ${{ github.repository }}
156+
- name: Fetch tags
157+
run: git fetch --prune --unshallow
158+
- name: Install pydra (test)
159+
run: pip install -e ".[test]"
160+
- name: Pytest
161+
run: pytest -vs --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml pydra/engine/tests/test_singularity.py pydra/engine/tests/test_environments.py
162+
- name: Upload to codecov
163+
run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW
164+
136165
test-slurm:
137166
needs: ['build']
138167
strategy:

0 commit comments

Comments
 (0)