Skip to content

Commit 3f45ed2

Browse files
author
Tom Softreck
committed
update
1 parent cc7fd0e commit 3f45ed2

File tree

1 file changed

+43
-11
lines changed

1 file changed

+43
-11
lines changed

.github/workflows/tests.yml

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,62 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

33+
- name: Debug system info
34+
run: |
35+
echo "=== System Information ==="
36+
uname -a
37+
echo "Python version: $(python --version)"
38+
echo "pip version: $(pip --version)"
39+
echo "==========================="
40+
3341
- name: Install system dependencies
3442
run: |
43+
echo "=== Installing system dependencies ==="
3544
sudo apt-get update
36-
sudo apt-get install -y python3-venv
45+
sudo apt-get install -y python3-venv python3-dev
46+
echo "======================================"
3747
3848
- name: Install Poetry
3949
run: |
40-
pip install "poetry==1.5.1"
50+
echo "=== Installing Poetry ==="
51+
python -m pip install --upgrade pip
52+
python -m pip install --user "poetry==1.5.1"
53+
echo "Poetry version: $(python -m poetry --version)"
54+
echo "Adding Poetry to PATH"
4155
echo "$(python -m site --user-base)/bin" >> $GITHUB_PATH
56+
echo "========================"
4257
4358
- name: Configure Poetry
4459
run: |
45-
poetry config virtualenvs.create true
46-
poetry config virtualenvs.in-project true
47-
poetry config --list
48-
poetry --version
60+
echo "=== Configuring Poetry ==="
61+
python -m poetry config virtualenvs.create true
62+
python -m poetry config virtualenvs.in-project true
63+
python -m poetry config --list
64+
echo "Poetry version: $(python -m poetry --version)"
65+
echo "Python executable: $(which python)"
66+
echo "=========================="
4967
5068
- name: Install dependencies
5169
run: |
52-
# Install dependencies with verbose output for better debugging
53-
poetry install --with dev,test --no-interaction --no-ansi -v
54-
poetry env info
55-
echo "Installed packages:"
56-
poetry show --tree
70+
set -x # Enable debug mode
71+
echo "=== Installing dependencies ==="
72+
echo "Current directory: $(pwd)"
73+
echo "Directory contents:"
74+
ls -la
75+
76+
echo "\n=== Running poetry install ==="
77+
python -m poetry install --with dev,test --no-interaction --no-ansi -v || \
78+
{ echo "poetry install failed"; exit 1; }
79+
80+
echo "\n=== Environment information ==="
81+
python -m poetry env info
82+
83+
echo "\n=== Installed packages ==="
84+
python -m poetry show --tree || echo "Failed to show package tree"
85+
86+
echo "\n=== Python path ==="
87+
python -c "import sys; print('\n'.join(sys.path))"
88+
echo "============================"
5789
5890
- name: Run tests with coverage
5991
run: |

0 commit comments

Comments
 (0)