File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 19
19
timeout-minutes : 10
20
20
strategy :
21
21
matrix :
22
- os : [ubuntu-20.04 ]
22
+ os : [ubuntu-latest ]
23
23
python-version : ["3.9", "3.12", "3.13"]
24
24
fail-fast : false
25
25
name : CPython ${{ matrix.python-version }}-${{ matrix.os }}
@@ -34,10 +34,11 @@ jobs:
34
34
cache : ' pip'
35
35
cache-dependency-path : ' pyproject.toml'
36
36
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
41
42
- name : Install Python dependencies
42
43
run : |
43
44
python -m pip install -U pip tox
46
47
tox -m test
47
48
48
49
lint :
49
- runs-on : ubuntu-20.04
50
+ runs-on : ubuntu-latest
50
51
steps :
51
52
- uses : actions/checkout@v4
52
53
with :
64
65
tox -m lint-manual
65
66
66
67
docs :
67
- runs-on : ubuntu-20.04
68
+ runs-on : ubuntu-latest
68
69
steps :
69
70
- uses : actions/checkout@v4
70
71
with :
@@ -81,10 +82,10 @@ jobs:
81
82
run : tox -m docs
82
83
- name : Run linkcheck
83
84
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
88
89
- name : Run doctest
89
90
run : tox -m doctest
90
91
You can’t perform that action at this time.
0 commit comments