Skip to content

Commit 35fccf4

Browse files
authored
Update unit-tests.yml
1 parent 07ef80a commit 35fccf4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ jobs:
3939
run: |
4040
echo "Validating installed packages..."
4141
pip list
42-
if ! pip show django; then
43-
echo "Django is not installed!"
42+
if ! pip show flask; then
43+
echo "Flask is not installed!"
4444
exit 1
4545
fi
4646
47-
- name: Check Django version
47+
- name: Check Flask version
4848
run: |
49-
echo "Checking Django version..."
50-
INSTALLED_VERSION=$(pip show django | grep Version | cut -d ' ' -f 2)
51-
REQUIRED_VERSION="4.2.4" # Вы можете изменить это на нужную вам версию
49+
echo "Checking Flask version..."
50+
INSTALLED_VERSION=$(pip show flask | grep Version | cut -d ' ' -f 2)
51+
REQUIRED_VERSION="2.3.2" # Укажите желаемую версию Flask
5252
if [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION" ]; then
53-
echo "Incorrect Django version installed: $INSTALLED_VERSION. Required: $REQUIRED_VERSION"
53+
echo "Incorrect Flask version installed: $INSTALLED_VERSION. Required: $REQUIRED_VERSION"
5454
exit 1
5555
fi
5656

0 commit comments

Comments
 (0)