PYTHON-5131 Migrate off of Ubuntu 20.04 GitHub Actions Runners (#329)

This commit is contained in:
Steven Silvester 2025-03-05 13:42:02 -06:00 committed by GitHub
parent 6751d66ed3
commit a879ce528a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-20.04]
os: [ubuntu-latest]
python-version: ["3.9", "3.12", "3.13"]
fail-fast: false
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
@ -34,10 +34,11 @@ jobs:
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
allow-prereleases: true
- name: Start MongoDB with Custom Options
run: |
mkdir data
mongod --fork --dbpath=$(pwd)/data --logpath=$PWD/mongo.log --setParameter enableTestCommands=1
- id: setup-mongodb
uses: mongodb-labs/drivers-evergreen-tools@master
with:
version: "8.0"
topology: replica_set
- name: Install Python dependencies
run: |
python -m pip install -U pip tox
@ -46,7 +47,7 @@ jobs:
tox -m test
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
@ -64,7 +65,7 @@ jobs:
tox -m lint-manual
docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
@ -81,10 +82,10 @@ jobs:
run: tox -m docs
- name: Run linkcheck
run: tox -m linkcheck
- name: Start MongoDB with Custom Options
run: |
mkdir data
mongod --fork --dbpath=$(pwd)/data --logpath=$PWD/mongo.log --setParameter enableTestCommands=1
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-version: 5.0
- name: Run doctest
run: tox -m doctest