| 
55 | 55 |       fail-fast: false  | 
56 | 56 |     runs-on: ${{ matrix.os }}  | 
57 | 57 |     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  | 
88 | 58 |       - name: Fetch repository  | 
89 | 59 |         uses: actions/checkout@v4  | 
90 | 60 |       - name: Fetch tags  | 
 | 
99 | 69 |         run: pip install .[test,psij,dask]  | 
100 | 70 |       - name: Print version  | 
101 | 71 |         run: python -c "import pydra.engine; print(pydra.engine.__version__)"  | 
 | 72 | +      - name: Disable etelemetry  | 
 | 73 | +        run:  echo "NO_ET=TRUE" >> $GITHUB_ENV  | 
102 | 74 |       - name: Pytest  | 
103 | 75 |         run: |  | 
104 | 76 |           pytest -vs -n auto pydra --doctest-modules --with-psij --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml  | 
@@ -133,6 +105,63 @@ jobs:  | 
133 | 105 |       - name: Upload to codecov  | 
134 | 106 |         run: codecov -f cov.xml -F unittests -e GITHUB_WORKFLOW  | 
135 | 107 | 
 
  | 
 | 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 | + | 
136 | 165 |   test-slurm:  | 
137 | 166 |     needs: ['build']  | 
138 | 167 |     strategy:  | 
 | 
0 commit comments