Skip to content

Commit 2bce70c

Browse files
authored
Test support for PyMongo 4.0 (#46)
1 parent 3d0bb1b commit 2bce70c

File tree

5 files changed

+871
-395
lines changed

5 files changed

+871
-395
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
matrix:
1010
python-version: ["3.5", "3.6", "3.7", "3.8", "pypy-3.7"]
1111
mongodb-version: ["4.4"]
12+
pymongo-version: ["3.11.0", "4.0.0"]
13+
# pymongo 4.0 does not support python 3.5
14+
exclude:
15+
- python-version: "3.5"
16+
pymongo-version: "4.0.0"
1217

1318
steps:
1419
- uses: actions/checkout@v2
@@ -20,8 +25,15 @@ jobs:
2025
uses: supercharge/[email protected]
2126
with:
2227
mongodb-version: ${{ matrix.mongodb-version }}
28+
# add caching to reduce bandwidth and save time
29+
- uses: actions/cache@v2
30+
with:
31+
path: ~/.cache/pip
32+
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-${{ hashFiles('**/setup.py') }}
33+
restore-keys: |
34+
${{ runner.os }}-${{ matrix.python-version}}-pip-
2335
- name: Test with python
2436
run: |
25-
python -m pip install pymongo==3.11.0
37+
python -m pip install pymongo==${{ matrix.pymongo-version }}
2638
python -m pip install -e .
2739
python setup.py test

0 commit comments

Comments
 (0)