Skip to content

Commit 1035683

Browse files
author
Tom Softreck
committed
update
1 parent 6adec8b commit 1035683

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
cache: 'poetry'
23+
24+
- name: Cache pip packages
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.cache/pip
28+
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
29+
restore-keys: |
30+
${{ runner.os }}-pip-
2431
2532
- name: Install system dependencies
2633
run: |
@@ -44,10 +51,20 @@ jobs:
4451
4552
- name: Install dependencies
4653
run: |
47-
# Install with verbose output for better debugging
48-
poetry install --no-interaction --no-ansi -v
54+
echo "=== Installing dependencies ==="
55+
# Check if poetry.lock exists
56+
if [ -f poetry.lock ]; then
57+
echo "Using existing poetry.lock"
58+
poetry install --no-interaction --no-ansi -v
59+
else
60+
echo "No poetry.lock found, installing without lock file"
61+
poetry install --no-interaction --no-ansi -v --no-lock
62+
fi
4963
# Verify the environment
64+
echo "\n=== Environment information ==="
5065
poetry env info
66+
echo "\n=== Installed packages ==="
67+
poetry show --tree || echo "Failed to show package tree"
5168
5269
- name: Run tests
5370
run: |

0 commit comments

Comments
 (0)