Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on:
pull_request:
branches:
- main
push:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This will make it easier to look through https://github.com/googleapis/python-bigquery-dataframes/actions?query=branch%3Amain+event%3Apush to see when failures started.

branches:
- main
name: docs
jobs:
docs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
name: lint
jobs:
lint:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
name: mypy
jobs:
mypy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
name: unittest
jobs:
unit:
Expand Down
15 changes: 9 additions & 6 deletions tests/unit/session/test_io_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ def test_create_job_configs_labels_length_limit_met_and_labels_is_none():
df.head()
api_methods = log_adapter._api_methods

labels = io_bq.create_job_configs_labels(
job_configs_labels=None, api_methods=api_methods
)
with bpd.option_context("compute.extra_query_labels", {}):
labels = io_bq.create_job_configs_labels(
job_configs_labels=None, api_methods=api_methods
)
assert labels is not None
assert len(labels) == log_adapter.MAX_LABELS_COUNT
assert "dataframe-head" in labels.values()
Expand All @@ -158,9 +159,11 @@ def test_create_job_configs_labels_length_limit_met():
df.max()
api_methods = log_adapter._api_methods

labels = io_bq.create_job_configs_labels(
job_configs_labels=cur_labels, api_methods=api_methods
)
with bpd.option_context("compute.extra_query_labels", {}):
labels = io_bq.create_job_configs_labels(
job_configs_labels=cur_labels, api_methods=api_methods
)

assert labels is not None
assert len(labels) == 56
assert "dataframe-max" in labels.values()
Expand Down
Loading