File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments