2
2
name : Test pull request
3
3
4
4
on :
5
- pull_request_target :
5
+ pull_request :
6
6
types :
7
7
- opened
8
8
- synchronize
29
29
needs : [fail_on_remote]
30
30
uses : ./.github/workflows/build-push-images.yml
31
31
with :
32
- ref : ${{ github.event.pull_request.head.sha }}
32
+ ref : ${{ github.sha }}
33
+ secrets : inherit
34
+
35
+ publish_charts :
36
+ uses : ./.github/workflows/build-push-charts.yml
37
+ with :
38
+ ref : ${{ github.sha }}
33
39
secrets : inherit
34
40
35
41
chart_validation :
@@ -42,11 +48,23 @@ jobs:
42
48
- name : Checkout the repo
43
49
uses : actions/checkout@v4
44
50
with :
45
- ref : ${{ github.event.pull_request.head.sha }}
51
+ ref : ${{ github.sha }}
52
+
53
+ - name : Reconfigure docker storage
54
+ # GitHub runners have an extra 75G disk at /mnt
55
+ # so we use this to avoid hitting capacity issues
56
+ # with kind cluster + vLLM container images
57
+ run : |
58
+ sudo bash -c 'cat > /etc/docker/daemon.json' << EOF
59
+ {
60
+ "data-root": "/mnt/docker-data"
61
+ }
62
+ EOF
63
+ sudo systemctl restart docker
46
64
47
65
- name : Run Gradio app tests
48
66
run : |
49
- ./test-images.sh $(git rev-parse --short ${{ github.event.pull_request.head. sha }})
67
+ ./test-images.sh $(git rev-parse --short ${{ github.sha }})
50
68
working-directory : web-apps
51
69
52
70
- name : Install Helm
@@ -71,18 +89,11 @@ jobs:
71
89
# we need to pull these published images and load them into the kind cluster
72
90
# with the tag correct tag.
73
91
- name : Load tagged container images into kind cluster
74
- run : ./kind-images.sh $(git rev-parse --short ${{ github.event.pull_request.head. sha }}) ${{ env.CLUSTER_NAME }}
92
+ run : ./kind-images.sh $(git rev-parse --short ${{ github.sha }}) ${{ env.CLUSTER_NAME }}
75
93
working-directory : web-apps
76
94
77
95
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
78
96
# Each chart/ci/*-values.yaml file will be treated as a separate test case with it's
79
97
# own helm install/test process.
80
98
- name : Run chart install and test
81
99
run : ct install --config ct.yaml
82
-
83
- publish_charts :
84
- needs : [chart_validation]
85
- uses : ./.github/workflows/build-push-charts.yml
86
- with :
87
- ref : ${{ github.event.pull_request.head.sha }}
88
- secrets : inherit
0 commit comments