1
- name : Unit Tests
1
+ name : Tests
2
2
3
3
on :
4
4
push :
17
17
- uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
+ ref : ${{ github.event.pull_request.head.sha }}
21
+
20
22
- name : Setup environment
21
23
uses : ./.github/actions/setup-environment
24
+
22
25
- name : Run ATS and Tests
23
26
uses : ./.github/actions/run-ats
24
27
timeout-minutes : 15
@@ -48,10 +51,15 @@ jobs:
48
51
name : " Codemod tests ${{matrix.size}}: Sync Graph=${{matrix.sync_graph}}"
49
52
steps :
50
53
- uses : actions/checkout@v4
54
+ with :
55
+ ref : ${{ github.event.pull_request.head.sha }}
56
+
51
57
- name : Setup environment
52
58
uses : ./.github/actions/setup-environment
59
+
53
60
- name : Cache oss-repos
54
61
uses : ./.github/actions/setup-oss-repos
62
+
55
63
- name : Run ATS and Tests
56
64
uses : ./.github/actions/run-ats
57
65
timeout-minutes : 15
@@ -66,11 +74,14 @@ jobs:
66
74
GITHUB_WORKSPACE : $GITHUB_WORKSPACE
67
75
68
76
parse-tests :
69
- runs-on : ubuntu-latest-32
70
77
if : contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
78
+ runs-on : ubuntu-latest-32
71
79
environment : parse-tests
72
80
steps :
73
81
- uses : actions/checkout@v4
82
+ with :
83
+ ref : ${{ github.event.pull_request.head.sha }}
84
+
74
85
- name : Setup environment
75
86
uses : ./.github/actions/setup-environment
76
87
@@ -91,10 +102,12 @@ jobs:
91
102
-n auto \
92
103
-o junit_suite_name="${{github.job}}" \
93
104
tests/integration/codemod/test_parse.py
105
+
94
106
- uses : ./.github/actions/report
95
107
with :
96
108
flag : no-flag
97
109
codecov_token : ${{ secrets.CODECOV_TOKEN }}
110
+
98
111
- name : Notify parse tests failure
99
112
100
113
if : failure() && github.event_name == 'push' && false
@@ -135,8 +148,12 @@ jobs:
135
148
runs-on : ubuntu-latest-16
136
149
steps :
137
150
- uses : actions/checkout@v4
151
+ with :
152
+ ref : ${{ github.event.pull_request.head.sha }}
153
+
138
154
- name : Setup environment
139
155
uses : ./.github/actions/setup-environment
156
+
140
157
- name : Test with pytest
141
158
timeout-minutes : 5
142
159
env :
@@ -147,6 +164,7 @@ jobs:
147
164
-n auto \
148
165
-o junit_suite_name="${{github.job}}" \
149
166
tests/integration/codegen
167
+
150
168
- uses : ./.github/actions/report
151
169
with :
152
170
flag : integration-tests
0 commit comments