diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 76ee1c6b8..dd1dcdecc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -59,7 +59,7 @@ jobs: PLATFORM: ${{ matrix.os }} DISPLAY: :42 run: | - coverage run -m pytest -v --color=yes + coverage run -m pytest -v --color=yes -m "not gpu" - name: Report coverage run: | coverage report diff --git a/pyproject.toml b/pyproject.toml index fa27fcd8a..435cf027c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,8 @@ xfail_strict = true # ] markers = [ "conda: marks a subset of tests to be ran on the Bioconda CI.", - "extra: marks tests that require extra dependencies." + "extra: marks tests that require extra dependencies.", + "gpu: mark test to run on GPU", ] minversion = 6.0 norecursedirs = [ '.*', 'build', 'dist', '*.egg', 'data', '__pycache__'] diff --git a/src/scirpy/tests/test_ir_dist_metrics.py b/src/scirpy/tests/test_ir_dist_metrics.py index 6cda3c7c6..c12d8768b 100644 --- a/src/scirpy/tests/test_ir_dist_metrics.py +++ b/src/scirpy/tests/test_ir_dist_metrics.py @@ -745,7 +745,7 @@ def test_tcrdist_histogram_not_implemented(): seqs = np.array(["AAAA", "AA", "AABB", "ABA"]) _ = tcrdist_calculator.calc_dist_mat(seqs, seqs) - +@pytest.mark.gpu def test_gpu_hamming_reference(): # test hamming distance against reference implementation from . import TESTDATA