Skip to content

Commit f229d0a

Browse files
committed
simplify integration tests
1 parent b729ce5 commit f229d0a

File tree

5 files changed

+180
-138
lines changed

5 files changed

+180
-138
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Download and Load Docker Images'
2+
description: 'Downloads and loads Docker images for integration/system tests'
3+
4+
inputs:
5+
artifact-name-pattern:
6+
description: 'Artifact name pattern for docker images (e.g., backend, or * for all)'
7+
required: false
8+
default: 'backend'
9+
10+
download-path:
11+
description: 'Path to download artifacts to'
12+
required: false
13+
default: '/${{ runner.temp }}/build'
14+
15+
runs:
16+
using: 'composite'
17+
steps:
18+
# FIXME: Workaround for https://github.com/actions/download-artifact/issues/249
19+
- name: download docker images with retry
20+
uses: Wandalen/wretry.action@master
21+
with:
22+
action: actions/download-artifact@v4
23+
with: |
24+
${{ inputs.artifact-name-pattern == '*' && 'pattern' || 'name' }}: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-${{ inputs.artifact-name-pattern }}
25+
path: ${{ inputs.download-path }}
26+
attempt_limit: 5
27+
attempt_delay: 1000
28+
29+
- name: load docker images
30+
shell: bash
31+
run: make load-images local-src=${{ inputs.download-path }}

.github/actions/setup-simcore-env/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ inputs:
2727
required: false
2828
default: 'true'
2929

30+
expose-github-runtime:
31+
description: 'Whether to expose GitHub runtime for buildx (needed for some integration tests)'
32+
required: false
33+
default: 'false'
34+
3035
runs:
3136
using: 'composite'
3237
steps:
@@ -37,6 +42,10 @@ runs:
3742
with:
3843
driver: docker-container
3944

45+
- name: Expose GitHub runtime for BuildX
46+
if: inputs.expose-github-runtime == 'true'
47+
uses: crazy-max/ghaction-github-runtime@v3
48+
4049
- name: Setup Python environment
4150
uses: actions/setup-python@v5
4251
with:

.github/actions/setup-system-tests/action.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/actions/setup-unit-tests/action.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)