From 208f733c6237fc6d8df521e6ccdf6d71403b9fa3 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 11 Mar 2024 09:19:39 +0100 Subject: [PATCH] biocontainers test is flaky, automatically retry it. --- test-requirements.txt | 1 + tests/test_dependencies.py | 1 + 2 files changed, 2 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index c1318d38d..241911811 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,6 +2,7 @@ bagit>=1.6.4,<1.9 pytest>= 6.2,< 8.2 pytest-xdist pytest-httpserver +pytest-retry;python_version>'3.9' mock>=2.0.0 pytest-mock>=1.10.0 pytest-cov diff --git a/tests/test_dependencies.py b/tests/test_dependencies.py index 9b4c00598..c3043cd3d 100644 --- a/tests/test_dependencies.py +++ b/tests/test_dependencies.py @@ -25,6 +25,7 @@ @needs_docker @pytest.mark.skipif(not deps, reason="galaxy-tool-util is not installed") +@pytest.mark.flaky(retries=3) def test_biocontainers(tmp_path: Path) -> None: wflow = get_data("tests/seqtk_seq.cwl") job = get_data("tests/seqtk_seq_job.json")