Skip to content

Commit 80bcaa7

Browse files
committed
tweak
1 parent b45bef1 commit 80bcaa7

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/pytest-gpu.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ jobs:
3838
fail-fast: false
3939
matrix:
4040
name: [pytest-gpu-acc-nvidia, pytest-gpu-omp-amd]
41-
test_examples:
42-
- examples/seismic/tti/tti_example.py
43-
- examples/seismic/acoustic/acoustic_example.py
44-
- examples/seismic/viscoacoustic/viscoacoustic_example.py
45-
- examples/seismic/viscoelastic/viscoelastic_example.py
46-
- examples/seismic/elastic/elastic_example.py
41+
test_examples: ["examples/seismic/tti/tti_example.py examples/seismic/acoustic/acoustic_example.py examples/seismic/viscoacoustic/viscoacoustic_example.py examples/seismic/viscoelastic/viscoelastic_example.py examples/seismic/elastic/elastic_example.py"]
4742

4843
include:
4944
# -------------------- NVIDIA job --------------------
@@ -159,17 +154,16 @@ jobs:
159154
docker run ${{ matrix.flags }} --env DEVITO_MPI=1 "${DOCKER_IMAGE}" \
160155
mpiexec -n 2 pytest ${{ matrix.test_examples }}
161156
162-
- name: Clean up test image
157+
- name: Builder & image cleanup (keep 3 days of cache)
163158
if: always()
164159
run: |
165-
# Remove only the image we just built
160+
# Remove only the test image we built
166161
docker rmi -f "${DOCKER_IMAGE}" || true
167162
168-
# Guard global prune the layers we created
169-
# (label ci-run=$GITHUB_RUN_ID)
163+
# Classic image layers created in this job
170164
docker image prune -f --filter label=ci-run=$GITHUB_RUN_ID
171165
172-
docker builder prune -f --filter "name=$RUNNER_NAME" --filter "until=168h"
173-
174-
# May be overkill - commented out for now but left here as a reminder
175-
# docker buildx rm $RUNNER_NAME || true
166+
# BuildKit cache: target the per-runner builder explicitly
167+
docker builder prune --builder "$RUNNER_NAME" \
168+
-f \
169+
--filter "until=72h"

0 commit comments

Comments
 (0)