Skip to content

INTPYTHON-589 Fix PyPI upload conditional (#61) #75

INTPYTHON-589 Fix PyPI upload conditional (#61)

INTPYTHON-589 Fix PyPI upload conditional (#61) #75

Workflow file for this run

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/[email protected]
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 .