Skip to content

Commit b266246

Browse files
author
Tom Softreck
committed
update
1 parent 1035683 commit b266246

1 file changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,39 @@ jobs:
4242
4343
- name: Configure Poetry
4444
run: |
45-
# Configure Poetry with explicit paths
46-
poetry config virtualenvs.create true
47-
poetry config virtualenvs.in-project true
48-
poetry config virtualenvs.path .venv
49-
poetry config --list
50-
poetry --version
45+
echo "=== Configuring Poetry ==="
46+
echo "Python executable: $(which python)"
47+
echo "Python version: $(python --version)"
48+
echo "Poetry version: $(poetry --version || echo 'Not available')"
49+
50+
# Verify Python environment
51+
echo "\n=== Python Environment ==="
52+
python -c "import sys; print('\n'.join(f'{k}: {v}' for k, v in {
53+
'Executable': sys.executable,
54+
'Version': sys.version,
55+
'Prefix': sys.prefix,
56+
'Base Prefix': sys.base_prefix,
57+
'Exec Prefix': sys.exec_prefix,
58+
'Path': '\n ' + '\n '.join(sys.path)
59+
}.items()))"
60+
61+
# Configure Poetry with error handling
62+
echo "\n=== Configuring Poetry ==="
63+
python -m poetry config virtualenvs.create true || \
64+
{ echo "Failed to set virtualenvs.create"; exit 1; }
65+
python -m poetry config virtualenvs.in-project true || \
66+
{ echo "Failed to set virtualenvs.in-project"; exit 1; }
67+
python -m poetry config virtualenvs.path .venv || \
68+
{ echo "Failed to set virtualenvs.path"; exit 1; }
69+
70+
# Verify configuration
71+
echo "\n=== Current Poetry Configuration ==="
72+
python -m poetry config --list || \
73+
{ echo "Failed to list Poetry configuration"; exit 1; }
74+
75+
echo "\n=== Poetry Environment ==="
76+
python -m poetry env info || \
77+
{ echo "Failed to get Poetry environment info"; exit 1; }
5178
5279
- name: Install dependencies
5380
run: |

0 commit comments

Comments
 (0)