Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ on:
required: false
default: "ghcr.io/restatedev/restate:main"
type: string
serviceImage:
description: "service image, if provided it will skip building the image from sdk main branch"
required: false
default: ""
type: string
workflow_call:
inputs:
restateCommit:
Expand All @@ -32,6 +37,11 @@ on:
required: false
default: "ghcr.io/restatedev/restate:main"
type: string
serviceImage:
description: "service image, if provided it will skip building the image from sdk main branch"
required: false
default: ""
type: string

jobs:
sdk-test-suite:
Expand Down Expand Up @@ -86,11 +96,15 @@ jobs:
docker tag "${output#*: }" "localhost/restatedev/restate-commit-download:latest"
docker image ls -a

# Either build the docker image from source
- name: Set up QEMU
if: ${{ inputs.serviceImage == '' }}
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
if: ${{ inputs.serviceImage == '' }}
uses: docker/setup-buildx-action@v3
- name: Build Python test-services image
if: ${{ inputs.serviceImage == '' }}
id: build
uses: docker/build-push-action@v6
with:
Expand All @@ -102,11 +116,17 @@ jobs:
cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=${{ github.workflow }}

# Or use the provided one
- name: Pull test services image
if: ${{ inputs.serviceImage != '' }}
shell: bash
run: docker pull ${{ inputs.serviceImage }}

- name: Run test tool
uses: restatedev/sdk-test-suite@v3.2
with:
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
serviceContainerImage: "restatedev/test-services-python"
serviceContainerImage: ${{ inputs.serviceImage != '' && inputs.serviceImage || 'restatedev/test-services-python' }}
exclusionsFile: "test-services/exclusions.yaml"
testArtifactOutput: "sdk-python-integration-test-report"
serviceContainerEnvFile: "test-services/.env"