Skip to content

Commit

Permalink
dont test if mongodb is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Feb 19, 2025
1 parent 9e82a95 commit cdc38df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
conda config --set solver libmamba
conda config --append channels conda-forge
conda config --set show_channel_urls true
conda install lhapdf pandoc mongodb
conda install lhapdf pandoc
- name: Install nnpdf with testing and qed extras
shell: bash -l {0}
run: |
Expand Down
3 changes: 2 additions & 1 deletion n3fit/src/n3fit/tests/test_hyperopt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Test hyperoptimization features
Test hyperoptimization features
"""

import json
Expand Down Expand Up @@ -177,6 +177,7 @@ def test_restart_from_pickle(tmp_path):
# Note that it doesn't check the final loss of the second trial


@pytest.mark.skipif(shutil.which("mongod") is None, reason="mongodb not available")
@pytest.mark.linux
def test_parallel_hyperopt(tmp_path):
"""Ensure that the parallel implementation of hyperopt with MongoDB works as expected."""
Expand Down

0 comments on commit cdc38df

Please sign in to comment.