Skip to content

Commit 3b4dbc2

Browse files
committed
add mongodb service container to fix ServerSelectionTimeoutError
1 parent d70a1f3 commit 3b4dbc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
test:
1111
if: github.repository_owner == 'hackingmaterials' # don't run on forks
1212
runs-on: ubuntu-latest
13+
services:
14+
mongodb:
15+
image: mongo
16+
ports:
17+
- 27017:27017
1318

1419
steps:
1520
- name: Checkout repo
@@ -22,6 +27,7 @@ jobs:
2227

2328
- name: Install OpenBabel
2429
run: |
30+
# underlying C++ lib needed for Python openbabel wrapper installed by `pip install .`
2531
sudo apt-get install libopenbabel-dev
2632
# https://github.com/openbabel/openbabel/issues/2408#issuecomment-1014466193
2733
sudo ln -s /usr/include/openbabel3 /usr/local/include/openbabel3
@@ -36,8 +42,6 @@ jobs:
3642
3743
- name: Install dependencies
3844
run: |
39-
which pip
40-
pip --version
4145
pip install -r requirements-ci.txt
4246
pip install .[complete]
4347

0 commit comments

Comments
 (0)