@@ -40,33 +40,15 @@ jobs:
4040 # Each weight is roughly 1 minute of expected execution time
4141 # Default for unset packages is 1
4242 PACKAGE_WEIGHTS : |
43- django-google-spanner: 2
44- gapic-generator: 3
45- google-ai-generativelanguage: 3
46- google-api-core: 2
47- google-auth: 2
48- google-cloud-bigquery: 4
49- google-cloud-bigquery-storage: 2
50- google-cloud-bigtable: 4
43+ google-ai-generativelanguage: 4
44+ google-auth: 5
5145 google-cloud-compute: 12
5246 google-cloud-compute-v1beta: 12
53- google-cloud-datastore: 3
54- google-cloud-dialogflow: 4
55- google-cloud-dialogflow-cx: 4
56- google-cloud-discoveryengine: 4
57- google-cloud-firestore: 3
58- google-cloud-logging: 3
59- google-cloud-monitoring: 3
60- google-cloud-ndb: 2
61- google-cloud-pubsub: 2
62- google-cloud-retail: 3
63- google-cloud-spanner: 4
64- google-cloud-storage: 4
65- google-shopping-merchant-accounts: 3
66- pandas-gbq: 2
67- proto-plus: 1
68- sqlalchemy-bigquery: 2
69- sqlalchemy-spanner: 2
47+ google-cloud-dialogflow: 6
48+ google-cloud-dialogflow-cx: 6
49+ google-cloud-discoveryengine: 8
50+ google-cloud-retail: 5
51+ google-shopping-merchant-accounts: 4
7052 steps :
7153 - name : Checkout
7254 uses : actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
@@ -174,52 +156,12 @@ jobs:
174156 path : .coverage.${{ matrix.python }}.*
175157 include-hidden-files : true
176158
177- core-deps :
178- needs : initialize
179- if : needs.initialize.outputs.matrix != '[]' && needs.initialize.outputs.matrix != ''
180- runs-on : ubuntu-22.04
181- strategy :
182- fail-fast : true
183- matrix :
184- python : ["3.14"]
185- package_shard : ${{ fromJson(needs.initialize.outputs.matrix) }}
186- name : ${{ matrix.package_shard.is_sharded && format('core-deps handwritten ({0}, {1})', matrix.python, matrix.package_shard.name) || format('core-deps handwritten ({0})', matrix.python) }}
187- steps :
188- - name : Checkout
189- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
190- # Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
191- # See https://github.com/googleapis/google-cloud-python/issues/12013
192- # and https://github.com/actions/checkout#checkout-head.
193- with :
194- fetch-depth : 2
195- persist-credentials : false
196- - name : Setup Python
197- uses : actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
198- with :
199- python-version : ${{ matrix.python }}
200- cache : ' pip'
201- allow-prereleases : true
202- - name : Install nox
203- run : |
204- pip install nox
205- - name : Run core_deps_from_source for ${{ matrix.package_shard.description }}
206- env :
207- BUILD_TYPE : presubmit
208- TARGET_BRANCH : ${{ github.base_ref || github.event.merge_group.base_ref }}
209- TEST_TYPE : core_deps_from_source
210- PY_VERSION : ${{ matrix.python }}
211- PACKAGE_LIST : ${{ matrix.package_shard.packages }}
212- NOX_DEFAULT_VENV_BACKEND : " virtualenv"
213- NOXFORCEPYTHON : ${{ matrix.python }}
214- run : |
215- ci/run_conditional_tests.sh
216-
217159 all-tests :
218- needs : [initialize, unit, core-deps ]
160+ needs : [initialize, unit]
219161 if : always()
220162 runs-on : ubuntu-latest
221163 steps :
222- - name : Check test results
164+ - name : Check unit test results
223165 run : |
224166 # 1. Check initialize job
225167 if [[ "${{ needs.initialize.result }}" != "success" ]]; then
@@ -231,12 +173,7 @@ jobs:
231173 echo "Unit tests failed"
232174 exit 1
233175 fi
234- # 3. Check core dependencies test shards
235- if [[ "${{ needs.core-deps.result }}" != "success" && "${{ needs.core-deps.result }}" != "skipped" ]]; then
236- echo "Core dependencies tests failed"
237- exit 1
238- fi
239- echo "All unit and core dependencies tests passed or were skipped"
176+ echo "All unit tests passed or were skipped"
240177
241178 cover :
242179 if : always() && !cancelled() && needs.all-tests.result == 'success'
0 commit comments