From d21eee466ac457f151e2f70609bef59fb95c4ac3 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sun, 31 Dec 2023 13:39:18 -0500 Subject: [PATCH] Add prints to test_installed_matches to debug Windows failure --- .github/workflows/test.yaml | 6 ++++-- test/test_cli.py | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index de454ef..6f85390 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,8 +25,10 @@ jobs: strategy: fail-fast: false matrix: - os: [ "windows-latest", "ubuntu-latest", "macos-latest" ] - python-version: [ "3.9", "3.10", "3.11", "3.12" ] + os: [ "windows-latest" ] + python-version: [ "3.12" ] +# os: [ "windows-latest", "ubuntu-latest", "macos-latest" ] +# python-version: [ "3.9", "3.10", "3.11", "3.12" ] steps: - uses: actions/checkout@v3 diff --git a/test/test_cli.py b/test/test_cli.py index bb2507b..5a8717d 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -1,3 +1,5 @@ +import os +import pathlib import subprocess import sys from typing import Any @@ -136,8 +138,12 @@ def test_installed_matches(sixs_version, manual_input_file, helpers) -> None: sixs_binary = sixs_bin.get_path(sixs_version) - direct_result = subprocess.run([sixs_binary], **proc_args) + venv_bin_dir = pathlib.Path(sys.executable).parent + print( + f"{list(pathlib.Path('C:/hostedtoolcache/windows/Python/3.12.1/x64/Scripts').iterdir())=}" + ) + direct_result = subprocess.run([sixs_binary], **proc_args) installed_result = subprocess.run([sixs_binary.name], **proc_args) assert direct_result.returncode == installed_result.returncode