Skip to content

Commit cfa2ff8

Browse files
committed
mark compiled tests as ci/cd only
1 parent 6904cd4 commit cfa2ff8

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

tests/test_complex.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
"""These are simple tests to verify complexint acts very similar to complex, but just with int output"""
22

3+
import os
4+
35
from pathlib import Path
46
from typing import Union
57

8+
import pytest
9+
610
import quadint
711

812
from quadint import (
913
QuadInt,
1014
complexint as complexi,
1115
)
1216

17+
@pytest.mark.skipif(os.getenv("CI", "").lower() not in {"1", "true", "yes"},
18+
reason="Compiled-only test")
1319
def test_compiled_tests():
1420
"""Verify that we are running these tests with a compiled version of complexint"""
1521
path = Path(quadint.__file__)

tests/test_dual.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
"""These are simple tests to verify complexint acts very similar to complex, but just with int output"""
22

3+
import os
4+
35
from pathlib import Path
46
from typing import Union
57

8+
import pytest
9+
610
import quadint.dual
711

812
from quadint import QuadInt, make_quadint
913
from quadint.dual import dualint
1014

15+
@pytest.mark.skipif(os.getenv("CI", "").lower() not in {"1", "true", "yes"},
16+
reason="Compiled-only test")
1117
def test_compiled_tests():
1218
"""Verify that we are running these tests with a compiled version of dualint"""
1319
path = Path(quadint.dual.__file__)

tests/test_eisenstein.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
"""These are simple tests to verify complexint acts very similar to complex, but just with int output"""
22

3+
import os
4+
35
from pathlib import Path
46
from typing import Union
57

8+
import pytest
9+
610
import quadint.eisenstein
711

812
from quadint import QuadInt, make_quadint
913
from quadint.eisenstein import eisensteinint as eisenstein
1014

15+
@pytest.mark.skipif(os.getenv("CI", "").lower() not in {"1", "true", "yes"},
16+
reason="Compiled-only test")
1117
def test_compiled_tests():
1218
"""Verify that we are running these tests with a compiled version of eisensteinint"""
1319
path = Path(quadint.eisenstein.__file__)

0 commit comments

Comments
 (0)