38
38
sdk-test-suite :
39
39
if : github.repository_owner == 'restatedev'
40
40
runs-on : ubuntu-latest
41
- name : " Features integration test (sdk-test-suite version ${{ matrix.sdk-test-suite }})"
42
- strategy :
43
- matrix :
44
- sdk-test-suite : [ "2.0" ]
41
+ name : Features integration test
45
42
permissions :
46
43
contents : read
47
44
issues : read
@@ -90,18 +87,10 @@ jobs:
90
87
docker tag "${output#*: }" "localhost/restatedev/restate-commit-download:latest"
91
88
docker image ls -a
92
89
93
- - name : Setup Java
94
- uses : actions/setup-java@v4
95
- with :
96
- distribution : ' temurin'
97
- java-version : ' 17'
98
90
- name : Set up QEMU
99
91
uses : docker/setup-qemu-action@v3
100
92
- name : Set up Docker Buildx
101
93
uses : docker/setup-buildx-action@v3
102
- - name : Setup sdk-test-suite
103
- run : wget --no-verbose https://github.com/restatedev/sdk-test-suite/releases/download/v${{ matrix.sdk-test-suite }}/restate-sdk-test-suite.jar
104
-
105
94
- name : Build Python test-services image
106
95
id : build
107
96
uses : docker/build-push-action@v6
@@ -110,25 +99,14 @@ jobs:
110
99
file : " test-services/Dockerfile"
111
100
push : false
112
101
load : true
113
- tags : localhost/ restatedev/test-services:latest
102
+ tags : restatedev/python- test-services
114
103
cache-from : type=gha,scope=${{ github.workflow }}
115
104
cache-to : type=gha,mode=max,scope=${{ github.workflow }}
116
105
117
- # Run test suite
118
- - name : Run test suite
119
- env :
120
- RESTATE_CONTAINER_IMAGE : ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
121
- run : java -jar restate-sdk-test-suite.jar run --report-dir=test-report --exclusions-file test-services/exclusions.yaml localhost/restatedev/test-services:latest
122
-
123
- # Upload logs and publish test result
124
- - uses : actions/upload-artifact@v4
125
- if : always() # Make sure this is run even when test fails
126
- with :
127
- name : sdk-python-integration-test-report
128
- path : test-report
129
- - name : Publish Test Results
130
- uses : EnricoMi/publish-unit-test-result-action@v2
131
- if : always()
106
+ - name : Run test tool
107
+ uses : restatedev/sdk-test-suite@v2.4
132
108
with :
133
- files : |
134
- test-report/*/*.xml
109
+ restateContainerImage : ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
110
+ serviceContainerImage : " restatedev/python-test-services"
111
+ exclusionsFile : " test-services/exclusions.yaml"
112
+ testArtifactOutput : " sdk-python-integration-test-report"
0 commit comments