Skip to content

Conversation

@plamut
Copy link
Contributor

@plamut plamut commented Apr 22, 2021

Closes #621. 🦕

The new check revealed a few cases where not installing extras caused some of the tests to fail, but that was due to test setup, and not the codebase itself.

PR checklist:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@plamut plamut requested review from a team and stephaniewang526 and removed request for a team April 22, 2021 12:36
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 22, 2021
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Apr 22, 2021
@plamut plamut requested a review from tswast April 22, 2021 12:36
Comment on lines +95 to +96
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
def unit_noextras(session):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Presumably using just the latest version is fine?
(the CI will finish faster)

On rare occasions an extra requires a more recent Python version, but I can't recall any cases when an extra would be restricted to older Python versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. We could also use DEFAULT_PYTHON_VERSION here, though that's not always the latest.

Comment on lines +95 to +96
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS[-1])
def unit_noextras(session):
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good to me. We could also use DEFAULT_PYTHON_VERSION here, though that's not always the latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add test session to nox without installing any "extras"

2 participants