File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ defaults:
14
14
shell : bash -eux {0}
15
15
16
16
env :
17
- MONGODB_VERSION : 7.0
17
+ MONGODB_VERSION : " 7.0"
18
18
19
19
jobs :
20
20
build :
34
34
uses : actions/setup-python@v5
35
35
with :
36
36
python-version : ${{ matrix.python-version }}
37
- - name : Start MongoDB on Linux and Windows
38
- if : ${{ ! startsWith(runner.os, 'macOS ') }}
37
+ - name : Start MongoDB on Linux
38
+ if : ${{ startsWith(runner.os, 'Linux ') }}
39
39
run : |
40
40
docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=unittest --detach mongo:${MONGODB_VERSION} mongod --replSet rs --setParameter transactionLifetimeLimitSeconds=5
41
41
until docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.runCommand({ ping: 1 })"; do
48
48
brew tap mongodb/brew
49
49
brew install mongodb/brew/mongodb-community@${MONGODB_VERSION}
50
50
brew services start mongodb-community@${MONGODB_VERSION}
51
+ - name : Start MongoDB on Windows
52
+ if : ${{ startsWith(runner.os, 'Windows') }}
53
+ shell : powershell
54
+ run : |
55
+ mkdir data
56
+ mongod --remove
57
+ mongod --install --dbpath=$(pwd)/data --logpath=$PWD/mongo.log
58
+ net start MongoDB
51
59
- name : Install package and pytest
52
60
run : |
53
61
python -m pip install .
You can’t perform that action at this time.
0 commit comments