Skip to content

Merge pull request #290 from IlyaSkriblovsky/fix-pymongo4-compat #48

Merge pull request #290 from IlyaSkriblovsky/fix-pymongo4-compat

Merge pull request #290 from IlyaSkriblovsky/fix-pymongo4-compat #48

Workflow file for this run

name: TxMongo
on: [push]
jobs:
basic:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
mongodb-version: ['4.2', '4.4']
steps:
- uses: actions/checkout@v3
- name: Start MongoDB (27017)
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e basic
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: code-coverage-report
path: htmlcov
advanced:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install MongoDB 4.4
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y --allow-downgrades mongodb-org-server=4.4.18
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
run: tox -e advanced