Skip to content

Commit 66ffe4d

Browse files
committed
fix: e2e testing
1 parent 2432119 commit 66ffe4d

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/tests.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
{
3+
"hardwareConfig": {
4+
"endpointConfig": {
5+
"gpuIds": "AMPERE_16",
6+
"name": "16GB GPU Test"
7+
}
8+
},
9+
"input": {
10+
"mock_result": "this worked!"
11+
}
12+
}
13+
]

.github/workflows/CI-e2e.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,16 @@ jobs:
4444
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
4545
docker build -t ${{ vars.DOCKERHUB_REPO }}/${{ vars.DOCKERHUB_IMG }}:${{ env.DOCKER_TAG }} -f mock-worker/Dockerfile mock-worker
4646
docker push ${{ vars.DOCKERHUB_REPO }}/${{ vars.DOCKERHUB_IMG }}:${{ env.DOCKER_TAG }}
47+
48+
test:
49+
name: Run End-to-End Tests
50+
runs-on: ubuntu-latest
51+
needs: build
52+
53+
steps:
54+
- uses: actions/checkout@v3
55+
- name: Run Tests
56+
uses: direlines/[email protected]
57+
with:
58+
image-tag: ${{ needs.build.outputs.docker_tag }}
59+
runpod-api-key: ${{ secrets.RUNPOD_API_KEY }}

0 commit comments

Comments
 (0)