Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for min dependencies and update test matrix for min and max server versions #183

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Jan 15, 2025

Run tests against minimum python packages and supported MongoDB version. Also test against the latest MongoDB version.

@blink1073 blink1073 marked this pull request as ready for review January 15, 2025 21:20
Copy link

@caseyclements caseyclements left a comment

Choose a reason for hiding this comment

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

A comment on hardcoded versions.

- name: Start MongoDB on MacOS
if: ${{ startsWith(runner.os, 'macOS') }}
run: |
brew tap mongodb/brew
brew install mongodb/brew/mongodb-community@${MONGODB_VERSION}
brew services start mongodb-community@${MONGODB_VERSION}
brew install mongodb/brew/[email protected]

Choose a reason for hiding this comment

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

How come this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the highest version supported on brew right now, but not the highest available with the GitHub action on Ubuntu.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I must have had it misconfigured before, it works with 8.0.

uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: "3.9"

Choose a reason for hiding this comment

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

Similar to comment about ${MONGODB_VERSION} => 7.0,
MIN_PYTHON_VERSION: "3.9", MONGODB_VERSION: "4.0" seem like a good idea. What am I missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Copy link

@caseyclements caseyclements left a comment

Choose a reason for hiding this comment

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

The latest env changes it make it much easier to see what you're after. Thanks!

@blink1073 blink1073 changed the title Add min dependency test Add tests for min dependencies and update test matrix for min and max server versions Jan 15, 2025
@blink1073 blink1073 merged commit d683131 into mongodb-labs:main Jan 15, 2025
21 checks passed
@blink1073 blink1073 deleted the add-min-version-test branch January 15, 2025 22:31
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