Skip to content

Commit

Permalink
Merge pull request #2698 from bagerard/mongo5
Browse files Browse the repository at this point in the history
Add mongo5 to pipeline
  • Loading branch information
bagerard committed Oct 23, 2022
2 parents 8ea77fc + 9946d1e commit 94c3735
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ on:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+*'
env:
MONGODB_3_6: 3.6.14
MONGODB_4_0: 4.0.23
MONGODB_4_2: 4.2
MONGODB_3_6: 3.6.23
MONGODB_4_0: 4.0.28
MONGODB_4_4: 4.4
MONGODB_5_0: "5.0"

PYMONGO_3_4: 3.4
PYMONGO_3_6: 3.6
PYMONGO_3_9: 3.9
PYMONGO_3_11: 3.11
PYMONGO_3_12: 3.12
PYMONGO_4_0: 4.0
PYMONGO_4_3: 4.3.2

MAIN_PYTHON_VERSION: 3.7

Expand Down Expand Up @@ -53,9 +54,6 @@ jobs:
- python-version: 3.7
MONGODB: $MONGODB_3_6
PYMONGO: $PYMONGO_3_9
- python-version: 3.7
MONGODB: $MONGODB_4_2
PYMONGO: $PYMONGO_3_9
- python-version: 3.7
MONGODB: $MONGODB_4_4
PYMONGO: $PYMONGO_3_11
Expand All @@ -65,6 +63,9 @@ jobs:
- python-version: 3.9
MONGODB: $MONGODB_4_4
PYMONGO: $PYMONGO_4_0
- python-version: "3.10"
MONGODB: $MONGODB_5_0
PYMONGO: $PYMONGO_4_3
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/install_mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ if [[ "$MONGODB" == *"4.2"* ]]; then
mongo_build=mongodb-linux-x86_64-ubuntu1804-v${MONGODB}-latest
elif [[ "$MONGODB" == *"4.4"* ]]; then
mongo_build=mongodb-linux-x86_64-ubuntu1804-v${MONGODB}-latest
elif [[ "$MONGODB" == *"5.0"* ]]; then
mongo_build=mongodb-linux-x86_64-ubuntu1804-v${MONGODB}-latest
fi

wget http://fastdl.mongodb.org/linux/$mongo_build.tgz
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ an `API reference <https://mongoengine-odm.readthedocs.io/apireference.html>`_.

Supported MongoDB Versions
==========================
MongoEngine is currently tested against MongoDB v3.6, v4.0, v4.2 and v4.4. Future versions
MongoEngine is currently tested against MongoDB v3.6, v4.0, v4.4 and v5.0. Future versions
should be supported as well, but aren't actively tested at the moment. Make
sure to open an issue or submit a pull request if you experience any problems
with a more recent MongoDB versions.
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Development
- (Fill this out as you fix issues and develop your features).
- Support MONGODB-AWS authentication mechanism (with `authmechanismproperties`) #2507
- Turning off dereferencing for the results of distinct query. #2663
- Add tests against Mongo 5.0 in pipeline

Changes in 0.24.2
=================
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ deps =
mg311: pymongo>=3.11,<3.12
mg312: pymongo>=3.12,<3.13
mg4: pymongo>=4.0,<4.1
mg432: pymongo>=4.3,<4.4
setenv =
PYTHON_EGG_CACHE = {envdir}/python-eggs

0 comments on commit 94c3735

Please sign in to comment.