Skip to content

Commit a879ce5

Browse files
authored
PYTHON-5131 Migrate off of Ubuntu 20.04 GitHub Actions Runners (#329)
1 parent 6751d66 commit a879ce5

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/test-python.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 10
2020
strategy:
2121
matrix:
22-
os: [ubuntu-20.04]
22+
os: [ubuntu-latest]
2323
python-version: ["3.9", "3.12", "3.13"]
2424
fail-fast: false
2525
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
@@ -34,10 +34,11 @@ jobs:
3434
cache: 'pip'
3535
cache-dependency-path: 'pyproject.toml'
3636
allow-prereleases: true
37-
- name: Start MongoDB with Custom Options
38-
run: |
39-
mkdir data
40-
mongod --fork --dbpath=$(pwd)/data --logpath=$PWD/mongo.log --setParameter enableTestCommands=1
37+
- id: setup-mongodb
38+
uses: mongodb-labs/drivers-evergreen-tools@master
39+
with:
40+
version: "8.0"
41+
topology: replica_set
4142
- name: Install Python dependencies
4243
run: |
4344
python -m pip install -U pip tox
@@ -46,7 +47,7 @@ jobs:
4647
tox -m test
4748
4849
lint:
49-
runs-on: ubuntu-20.04
50+
runs-on: ubuntu-latest
5051
steps:
5152
- uses: actions/checkout@v4
5253
with:
@@ -64,7 +65,7 @@ jobs:
6465
tox -m lint-manual
6566
6667
docs:
67-
runs-on: ubuntu-20.04
68+
runs-on: ubuntu-latest
6869
steps:
6970
- uses: actions/checkout@v4
7071
with:
@@ -81,10 +82,10 @@ jobs:
8182
run: tox -m docs
8283
- name: Run linkcheck
8384
run: tox -m linkcheck
84-
- name: Start MongoDB with Custom Options
85-
run: |
86-
mkdir data
87-
mongod --fork --dbpath=$(pwd)/data --logpath=$PWD/mongo.log --setParameter enableTestCommands=1
85+
- name: Start MongoDB
86+
uses: supercharge/[email protected]
87+
with:
88+
mongodb-version: 5.0
8889
- name: Run doctest
8990
run: tox -m doctest
9091

0 commit comments

Comments
 (0)