Skip to content

Commit

Permalink
Skip CI test failing as needs large runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jdickerson95 committed Dec 13, 2024
1 parent 6321541 commit 72886cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_simulated_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import mrcfile
import numpy as np
import pytest
import requests

from ttsim3d import simulate3d
Expand Down Expand Up @@ -81,6 +82,15 @@ def setup_simulation():
return pdb_filepath, mrc_filepath, dqe_filepath


def is_ci() -> bool:
"""Check if running in CI environment."""
return os.environ.get("CI", "false").lower() == "true"


@pytest.mark.skipif(
is_ci(),
reason="Skip on CI due to memory constraints. Run locally or on large runner only.",
)
def test_simulate3d():
"""Do the simulation and compare to the reference mrc file."""
pdb_filepath, mrc_filepath, dqe_filepath = setup_simulation()
Expand Down

0 comments on commit 72886cb

Please sign in to comment.