Skip to content

Commit 901b98e

Browse files
abitrollyidank
authored andcommitted
tests: start MongoDB 5 with GitHub Actions
This uses MongoDB 5, because later versions fail with "OperationFailure: Unsupported OP_QUERY command" https://www.mongodb.com/docs/v6.0/release-notes/6.0-compatibility/#legacy-opcodes-removed
1 parent d2744c5 commit 901b98e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/python-app.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3434
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3535
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36-
- name: Test with pytest
36+
- name: Spin up MongoDB for running tests
37+
uses: supercharge/[email protected]
38+
with:
39+
mongodb-version: "5"
40+
- name: Run nosetests
3741
run: |
38-
pytest
42+
mongorestore dump/explainshell && mongorestore -d explainshell_tests dump/explainshell
43+
make tests

0 commit comments

Comments
 (0)