Skip to content

PYTHON-3383 [pymongoexplain] Support Python 3.7-3.12 #53

PYTHON-3383 [pymongoexplain] Support Python 3.7-3.12

PYTHON-3383 [pymongoexplain] Support Python 3.7-3.12 #53

Workflow file for this run

name: pymongoexplain
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.7"]
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.8.0
with:
mongodb-replica-set: test-rs
# add caching to reduce bandwidth and save time
- uses: actions/cache@v3
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 pytest