- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4
Test support for PyMongo 4.0 #46
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
Changes from 13 commits
1b2b5c9
              5b6c5b6
              1b07454
              6bf308c
              923125c
              0999eb7
              825a14a
              9b44974
              780ec65
              087aa59
              2b94244
              038cc14
              7b2c640
              5074eb9
              1b6d0da
              0fe7eb9
              b903c8a
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -9,6 +9,11 @@ jobs: | |
| matrix: | ||
| python-version: ["3.5", "3.6", "3.7", "3.8", "pypy-3.7"] | ||
| mongodb-version: ["4.4"] | ||
| pymongo-version: ["v3.11", "v4.0"] | ||
| # pymongo 4.0 does not support python 3.5 | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you file a new issue to drop support for 3.5 if one doesn't exist already? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. | ||
| exclude: | ||
| - python-version: "3.5" | ||
| pymongo-version: "v4.0" | ||
|          | ||
|  | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|  | @@ -20,8 +25,15 @@ jobs: | |
| uses: supercharge/[email protected] | ||
| with: | ||
| mongodb-version: ${{ matrix.mongodb-version }} | ||
| # add caching to reduce bandwidth and save time | ||
| - uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-${{ matrix.python-version}}-pip-${{ hashFiles('**/setup.py') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-${{ matrix.python-version}}-pip- | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this needed? How much time are we saving? IIRC these tests run very fast already. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tests do already run fast. I mainly added this in because Steve suggested it and I thought it would be an easy way to make it run a bit faster. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay and what is the impact of this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a general thing that we add to the Jupyter repos to save time and bandwidth to pypi.org. If we don't want it here that's fine too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I get that, I just want to know how much time was actully saved in our case. How slow were the old tests and how much quicker are they now? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this case I see about 40s -> 30s on the Python 3.8 builds. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks SGTM! | ||
| - name: Test with python | ||
| run: | | ||
| python -m pip install pymongo==3.11.0 | ||
| python -m pip install pymongo==${{ matrix.pymongo-version }} | ||
| python -m pip install -e . | ||
| python setup.py test | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the v's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed.