Skip to content

Commit

Permalink
detect G4, explicitly disable exatrkx
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Apr 14, 2023
1 parent 799681d commit 12edc4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
&& source build/python/setup.sh
&& export LD_LIBRARY_PATH=$PWD/build/thirdparty/OpenDataDetector/factory:$LD_LIBRARY_PATH
&& pip3 install -r Examples/Python/tests/requirements.txt
&& pytest -rFsv -v
&& pytest -rFsv -k "not exatrkx" -v
linux_physmon:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion Examples/Python/tests/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
import acts
from acts.examples import IAlgorithm

geant4Enabled = any(v.startswith("G4") for v in os.environ.keys())
geant4Enabled = (
any(v.startswith("G4") for v in os.environ.keys())
or "GEANT4_DATA_DIR" in os.environ
)
if geant4Enabled:
try:
import acts.examples.geant4
Expand Down Expand Up @@ -79,6 +82,7 @@
if k.endswith("Enabled"):
locals()[k] = True


class AssertCollectionExistsAlg(IAlgorithm):
events_seen = 0
collections: List[str]
Expand Down

0 comments on commit 12edc4f

Please sign in to comment.