2424 with :
2525 environment-name : black
2626 create-args : black
27- cache-environment : true
27+ cache-environment : false
2828
2929 - name : Check formatting
3030 shell : bash -el {0}
4848 AWS_AVAILABLE : " ${{ secrets.AWS_ACCESS_KEY_ID }}"
4949 GCP_AVAILABLE : " ${{ secrets.GCP_SA_KEY }}"
5050 steps :
51- - uses : actions/checkout@v3
51+ - uses : actions/checkout@v4
5252 with :
5353 fetch-depth : 0
5454
@@ -58,12 +58,13 @@ jobs:
5858 cp test-environment.yml test-environment-${{ matrix.py_ver }}.yml
5959 sed -E -i 's/- python.+/- python =${{ matrix.py_ver }}/' test-environment-${{ matrix.py_ver }}.yml
6060
61- - name : Setup snakemke environment
62- uses : mamba-org /setup-micromamba@v1
61+ - name : Setup snakemake environment
62+ uses : conda-incubator /setup-miniconda@v3
6363 with :
64+ miniforge-version : latest
6465 environment-file : test-environment-${{ matrix.py_ver }}.yml
6566 environment-name : snakemake
66- cache-environment : true
67+ auto-update-conda : true
6768
6869 - name : Install snakemake from source
6970 shell : bash -el {0}
8182 sudo apt-get update
8283 sudo apt install -y stress git wget openmpi-bin libopenmpi-dev apptainer
8384
85+ # See https://github.com/apptainer/apptainer/pull/2262
86+ - name : Disable apparmor namespace restrictions for apptainer
87+ run : |
88+ sudo sh -c 'echo kernel.apparmor_restrict_unprivileged_userns=0 \
89+ >/etc/sysctl.d/90-disable-userns-restrictions.conf'
90+ sudo sysctl -p /etc/sysctl.d/90-disable-userns-restrictions.conf
91+
8492 - name : Test local
8593 env :
8694 CI : true
@@ -115,7 +123,7 @@ jobs:
115123 name : report-${{ matrix.py_ver }}.zip
116124 path : tests/test_report/report.zip
117125
118-
126+
119127 build-container-image :
120128 runs-on : ubuntu-latest
121129 needs : testing
@@ -132,7 +140,7 @@ jobs:
132140 runs-on : windows-latest
133141 needs : formatting
134142 steps :
135- - uses : actions/checkout@v3
143+ - uses : actions/checkout@v4
136144 with :
137145 fetch-depth : 0
138146 - name : Remove unix-only dependencies
@@ -145,12 +153,12 @@ jobs:
145153 print(line, end="")
146154
147155 - name : Setup snakemake environment
148- uses : mamba-org /setup-micromamba@v1
156+ uses : conda-incubator /setup-miniconda@v3
149157 with :
158+ miniforge-version : latest
150159 environment-file : test-environment.yml
151160 environment-name : snakemake
152- init-shell : powershell
153- cache-environment : true
161+ auto-update-conda : true
154162
155163 - name : Install snakemake from source
156164 run : |
@@ -162,4 +170,4 @@ jobs:
162170 CI : true
163171 ZENODO_SANDBOX_PAT : " ${{ secrets.ZENODO_SANDBOX_PAT }}"
164172 run : |
165- python -m pytest --show-capture=stderr -v -x --splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration tests/tests.py
173+ python -m pytest --show-capture=stderr -v -x --splits 10 --group ${{ matrix.test_group }} --splitting-algorithm=least_duration tests/tests.py
0 commit comments