From 90f29f9a390362da00cd3ade1736c509697c325a Mon Sep 17 00:00:00 2001 From: Paige Gulley Date: Thu, 14 Dec 2023 12:38:26 -0500 Subject: [PATCH] Don't run tess which will fail due to network concerns on github ci --- mcnews/searchapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcnews/searchapi.py b/mcnews/searchapi.py index 387b837..d9ef498 100644 --- a/mcnews/searchapi.py +++ b/mcnews/searchapi.py @@ -4,11 +4,15 @@ import requests import ciso8601 from mcnews import util +import os +import pytest VERSION = "v1" # the API access URL is versioned for future compatability and maintenance +IN_GITHUB_CI_WORKFLOW = os.getenv("GITHUB_ACTIONS") == "true" +pytest.mark.skipif(IN_GITHUB_CI_WORKFLOW, reason="requires VPN tunnel to Media Cloud") class SearchApiClient: API_BASE_URL = "https://news-search-api.tarbell.mediacloud.org/{}/".format(VERSION)