pymongo 4.9 has internal changes that break MIM, need to fix it still #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
tests: | |
name: Python ${{ matrix.python-version }}-${{ matrix.pymongo-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- 3.9 | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- pypy3.9 | |
pymongo-version: | |
- pymongo3 | |
- pymongo4 | |
services: | |
mongodb: | |
image: mongo:4 | |
ports: | |
- 27017:27017 | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --upgrade tox | |
- name: Run tox targets for ${{ matrix.python-version }} | |
# sed is used to remove the '.' so '3.7' becomes '37' for tox (and pypy3 doesn't become pypypy3) | |
# and drop the '-dev' from any prerelease version | |
run: | | |
export PY_VER=`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/ | sed s/-dev//` | |
tox --skip-missing-interpreters false -e "py$PY_VER-${{ matrix.pymongo-version }}" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: false | |
flags: tests-${{ matrix.python-version }} | |
name: codecov-umbrella | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |