diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 3457407..bf453d6 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -29,9 +29,9 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install coverage + python -m pip install --upgrade pip --quiet + pip install -r requirements.txt --quiet + pip install coverage --quiet - name: Test jill download and install run: | @@ -75,12 +75,13 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install coverage + python -m pip install --upgrade pip --quiet + pip install -r requirements.txt --quiet + pip install coverage --quiet - name: test install run: | + python -m jill upstream python -m jill install --confirm --upstream Official & julia -e 'using InteractiveUtils; versioninfo()' & julia --project=. -e 'using Pkg; Pkg.add(\"ImageCore\")' @@ -116,8 +117,9 @@ jobs: run: | apt-get update -qq apt-get install -y -qq -o=Dpkg::Use-Pty=0 python3-pip python3-wheel python3-setuptools gnupg wget --no-install-recommends - pip3 install --upgrade pip - pip3 install -r requirements.txt + pip3 install --upgrade pip --quiet + pip3 install -r requirements.txt --quiet + python -m jill upstream python3 -m jill install --confirm --upstream Official julia -e 'using InteractiveUtils; versioninfo()' python3 -m jill install 1.0 --confirm --upstream Official diff --git a/jill/utils/source_utils.py b/jill/utils/source_utils.py index 85d695e..cff1c4a 100644 --- a/jill/utils/source_utils.py +++ b/jill/utils/source_utils.py @@ -7,6 +7,7 @@ from .net_utils import query_ip from .net_utils import port_response_time from .net_utils import is_url_available +from .sys_utils import show_verbose from .filters import generate_info from .interactive_utils import color @@ -198,6 +199,8 @@ def query_download_url(self, url_list = chain.from_iterable(repeat(url_list, max_try)) for url in url_list: + if show_verbose(): + print(f"query {url}") if is_url_available(url, timeout): return url return None diff --git a/jill/utils/sys_utils.py b/jill/utils/sys_utils.py index 78f5cec..f41758f 100644 --- a/jill/utils/sys_utils.py +++ b/jill/utils/sys_utils.py @@ -3,6 +3,7 @@ in the `filters` module """ import platform +import os def current_system(): @@ -31,3 +32,10 @@ def current_architecture(): return "x86_64" else: return arch + + +def show_verbose(): + if "GITHUB_ACTIONS" in os.environ: + return True + + return os.environ.get("DEBUG", False)