Skip to content

Commit

Permalink
REVERT: change back to CI variable for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 22, 2025
1 parent 5fc8ae2 commit e48212b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/sympy/test_cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import logging
import os
import sys
from typing import TYPE_CHECKING, ClassVar

Expand All @@ -18,6 +19,9 @@
from qrules.transition import SpinFormalism


_GH = "CI" in os.environ and os.uname().sysname != "Darwin"


@pytest.mark.parametrize(
("expected_hash", "assumptions"),
[
Expand Down Expand Up @@ -88,8 +92,8 @@ def test_reaction(self, expected_hash: str, formalism: SpinFormalism):
@pytest.mark.parametrize(
("expected_hash", "formalism"),
[
("01bb112", "canonical-helicity"),
("0638a0e", "helicity"),
("87c4839" if _GH else "01bb112", "canonical-helicity"),
("c147bdd" if _GH else "0638a0e", "helicity"),
],
ids=["canonical-helicity", "helicity"],
)
Expand Down

0 comments on commit e48212b

Please sign in to comment.