Skip to content

PYTHON-5468 Add Python 3.14 support (#321) #19

PYTHON-5468 Add Python 3.14 support (#321)

PYTHON-5468 Add Python 3.14 support (#321) #19

Workflow file for this run

name: Tests
on:
push:
branches: ['master']
pull_request:
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -eux {0}
jobs:
test:
runs-on: ubuntu-22.04
name: Run ${{ matrix.options[0] }} Tests
strategy:
fail-fast: false
matrix:
# Github Actions doesn't support pairing matrix values together, let's improvise
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
options:
- ["Other", "--ignore=tests/test_replica_set.py --ignore=tests/test_replica_sets.py --ignore=tests/test_sharded_clusters.py", "3.9"]
- ["Replica Set", "tests/test_replica_set.py", "3.10"]
- ["Replica Sets", "tests/test_replica_sets.py", "3.12"]
- ["Sharded", "tests/test_sharded_clusters.py", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.options[2] }}
allow-prereleases: true
- name: Install MongoDB
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
- name: Install Dependencies
run: |
pip install -e ".[test]"
- name: Run Tests
run: |
pytest -raXs -v --durations 10 --color=yes ${{ matrix.options[1] }}