From c31df22b59c8019245d55b2bf10496818f3a0ecc Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 13 Nov 2023 03:24:39 +0100 Subject: [PATCH] MongoDB: Fix CI - Downgrade to Python 3.11 - Downgrade to pymongo<4 on MongoDB 2 - Skip testing against MongoDB 2, because `auth failed` --- .github/workflows/mongodb.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 8a63010e..19fdb1b0 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -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 }} @@ -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