Skip to content

Commit

Permalink
MongoDB: Fix CI
Browse files Browse the repository at this point in the history
- Downgrade to Python 3.11
- Downgrade to pymongo<4 on MongoDB 2
- Skip testing against MongoDB 2, because `auth failed`
  • Loading branch information
amotl committed Nov 13, 2023
1 parent 958ac5f commit c31df22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.12"]
mongodb-version: ["2", "3", "4", "5", "6", "7"]
python-version: ["3.8", "3.11"]
mongodb-version: ["3", "4", "5", "6", "7"]

env:
OS: ${{ matrix.os }}
Expand Down Expand Up @@ -70,6 +70,11 @@ jobs:
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[mongodb,test,develop]
- name: Downgrade pymongo on MongoDB 2
if: matrix.mongodb-version == '2'
run: |
pip install 'pymongo<4'
- name: Run linter and software tests
run: |
pytest -m mongodb
Expand Down

0 comments on commit c31df22

Please sign in to comment.