Skip to content

Fix #911: Remove Python 3.7 (EOL) #79

Fix #911: Remove Python 3.7 (EOL)

Fix #911: Remove Python 3.7 (EOL) #79

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
pymongo-version: ["4.0", "4.2"]
mongodb-version: ["4.4"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}--${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.7.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Run test
run: |
python -m pip install -U pip
# Use tox-gh to configure the python environment
# See https://github.com/tox-dev/tox-gh
python -m pip install tox_gh pymongo==${{ matrix.pymongo-version }}
tox