Skip to content

Commit b5d489b

Browse files
author
Tom Softreck
committed
update
1 parent ed3b512 commit b5d489b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ jobs:
2323
python-version: ['3.8', '3.9', '3.10', '3.11']
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
with:
29+
fetch-depth: 0 # Fetch all history for version tagging
2730

2831
- name: Set up Python ${{ matrix.python-version }}
2932
uses: actions/setup-python@v4
@@ -73,17 +76,24 @@ jobs:
7376
echo "Directory contents:"
7477
ls -la
7578
76-
# Check if poetry.lock exists, generate it if not
79+
# First install only the project dependencies (without lock file)
80+
echo "\n=== Installing project dependencies (initial pass) ==="
81+
python -m poetry install --no-interaction --no-ansi -v --only main || \
82+
{ echo "Initial dependency installation failed"; exit 1; }
83+
84+
# Now generate the lock file if it doesn't exist
7785
if [ ! -f poetry.lock ]; then
78-
echo "\n=== No poetry.lock found, generating lock file ==="
86+
echo "\n=== Generating poetry.lock ==="
7987
python -m poetry lock --no-update || \
8088
{ echo "Failed to generate poetry.lock"; exit 1; }
8189
fi
8290
83-
echo "\n=== Running poetry install ==="
91+
# Install all dependencies with the lock file
92+
echo "\n=== Installing all dependencies ==="
8493
python -m poetry install --with dev,test --no-interaction --no-ansi -v || \
85-
{ echo "poetry install failed"; exit 1; }
94+
{ echo "poetry install with dev/test failed"; exit 1; }
8695
96+
# Verify the environment
8797
echo "\n=== Environment information ==="
8898
python -m poetry env info
8999

0 commit comments

Comments
 (0)