Skip to content

Commit

Permalink
add a CI job for testing with mongomock
Browse files Browse the repository at this point in the history
  • Loading branch information
ikondov committed May 24, 2024
1 parent 78355b7 commit 605a009
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

jobs:
pytest:
pytest_mongodb:
working_directory: ~/fireworks
docker:
- image: continuumio/miniconda3:4.6.14
Expand All @@ -26,7 +26,37 @@ jobs:
pip install .[workflow-checks,graph-plotting,flask-plotting]
pytest fireworks
pytest_mongomock:
working_directory: ~/fireworks
docker:
- image: continuumio/miniconda3:4.6.14
steps:
- checkout
- run:
command: |
export PATH=$HOME/miniconda3/bin:$PATH
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda create -q -n test-environment python=3.8
source activate test-environment
conda update --quiet --all
pip install --quiet --ignore-installed -r requirements.txt -r requirements-ci.txt
- run:
name: Run fireworks tests
command: |
export PATH=$HOME/miniconda3/bin:$PATH
source activate test-environment
pip install .[workflow-checks,graph-plotting,flask-plotting]
server_store_file=$PWD/server_store_${RANDOM}-${RANDOM}-${RANDOM}.json
echo "{}" > $server_store_file
export MONGOMOCK_SERVERSTORE_FILE=$server_store_file
pytest -m "not mongodb" fireworks
rm $server_store_file
workflows:
version: 2
build_and_test:
jobs: [pytest]
jobs:
- pytest_mongodb
- pytest_mongomock
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ flask==2.2.5
flask-paginate==0.5.5
gunicorn==20.0.4
tqdm==4.41.0
mongomock @ git+https://github.com/ikondov/mongomock.git@persistence

0 comments on commit 605a009

Please sign in to comment.