Update pymongo and python support (#59) #70
This file contains hidden or 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: pymongoexplain | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10"] | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.12.0 | |
with: | |
mongodb-version: "4.4" | |
mongodb-replica-set: test-rs | |
# add caching to reduce bandwidth and save time | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-${{ hashFiles('**/setup.py') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.python-version}}-pip- | |
- name: Test with python | |
run: | | |
python -m pip install -e ".[test]" | |
python -m unittest discover . | |
- name: Test min pymongo | |
run: | | |
python -m pip install pymongo==4.9 | |
python -m unittest discover . |