-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92e5553
commit 1de783a
Showing
1 changed file
with
7 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,18 +90,10 @@ jobs: | |
docker tag "${output#*: }" "localhost/restatedev/restate-commit-download:latest" | ||
docker image ls -a | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Setup sdk-test-suite | ||
run: wget --no-verbose https://github.com/restatedev/sdk-test-suite/releases/download/v${{ matrix.sdk-test-suite }}/restate-sdk-test-suite.jar | ||
|
||
- name: Build Python test-services image | ||
id: build | ||
uses: docker/build-push-action@v6 | ||
|
@@ -110,25 +102,14 @@ jobs: | |
file: "test-services/Dockerfile" | ||
push: false | ||
load: true | ||
tags: localhost/restatedev/test-services:latest | ||
tags: restatedev/python-test-services | ||
cache-from: type=gha,scope=${{ github.workflow }} | ||
cache-to: type=gha,mode=max,scope=${{ github.workflow }} | ||
|
||
# Run test suite | ||
- name: Run test suite | ||
env: | ||
RESTATE_CONTAINER_IMAGE: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }} | ||
run: java -jar restate-sdk-test-suite.jar run --report-dir=test-report --exclusions-file test-services/exclusions.yaml localhost/restatedev/test-services:latest | ||
|
||
# Upload logs and publish test result | ||
- uses: actions/upload-artifact@v4 | ||
if: always() # Make sure this is run even when test fails | ||
with: | ||
name: sdk-python-integration-test-report | ||
path: test-report | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
- name: Run test tool | ||
uses: restatedev/[email protected] | ||
with: | ||
files: | | ||
test-report/*/*.xml | ||
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }} | ||
serviceContainerImage: "restatedev/python-test-services" | ||
exclusionsFile: "test-services/exclusions.yaml" | ||
testArtifactOutput: "sdk-python-integration-test-report" |