Skip to content

Extend Cloud Build configuration to run tests on push and merge#1097

Open
stevemessick wants to merge 5 commits into
mainfrom
enable-ci-tests
Open

Extend Cloud Build configuration to run tests on push and merge#1097
stevemessick wants to merge 5 commits into
mainfrom
enable-ci-tests

Conversation

@stevemessick

Copy link
Copy Markdown
Contributor
  • Run unit tests and linting on Python 3.11 and 3.12.
  • Run integration tests on Python 3.11 and 3.12 only on merge to main.
  • Mark test_get_apikey_creds_invalid_json as expected failure due to old kagglesdk.

TAG=agy
CONV=0ac92854-39e9-433e-a61b-52fb995a144a

- Run unit tests and linting on Python 3.11 and 3.12.
- Run integration tests on Python 3.11 and 3.12 only on merge to main.
- Mark test_get_apikey_creds_invalid_json as expected failure due to old kagglesdk.

TAG=agy
CONV=0ac92854-39e9-433e-a61b-52fb995a144a
TAG=agy
CONV=7cc886bc-7293-4f57-a398-5d4a69a9a91e
TAG=agy
CONV=7cc886bc-7293-4f57-a398-5d4a69a9a91e
@stevemessick stevemessick requested a review from rosbo July 13, 2026 16:42
Comment thread tools/cicd/cloudbuild.yaml Outdated
# Check substitutions / Pull cache for MIN
- name: 'gcr.io/cloud-builders/docker'
id: 'check_substitutions'
id: 'check_substitutions_min'

@rosbo rosbo Jul 13, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of running against min and max, we should configure separate triggers to run the pipeline against a list of different python versions.

This is how we do it for kagglehub: https://github.com/Kaggle/kaggleazure/blob/cd6d6b258fb1dddc90f29b5995d421acf5213828/configs/cicd/cloud_builds/main.tf#L2019

It is also nice because you can easily see on github which python version failed (see screenshot) and use docker-hatch with the --python-version flag to debug locally.

Address review comment: configure separate triggers to run the pipeline
against different python versions instead of duplicating steps in a single
workflow.

TAG=agy
CONV=37f1c9b9-ac6f-4e29-874d-c083460c7db1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants