Skip to content

Commit

Permalink
Add prints to test_installed_matches to debug Windows failure
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Dec 31, 2023
1 parent c7555e9 commit d21eee4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion test/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os
import pathlib
import subprocess
import sys
from typing import Any
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d21eee4

Please sign in to comment.