Skip to content

Commit fdafc8d

Browse files
authored
Update unit-tests.yml
1 parent 8390ada commit fdafc8d

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ on:
44
push:
55
branches:
66
- main
7-
paths-ignore:
8-
- '**.md'
97
pull_request:
108
branches:
119
- main
12-
paths-ignore:
13-
- '**.md'
1410

1511
permissions:
1612
contents: read # Только чтение содержимого репозитория
@@ -40,20 +36,10 @@ jobs:
4036
exit 1
4137
fi
4238
43-
- name: Validate installed packages
39+
- name: Validate Django version
4440
run: |
45-
echo "Validating installed packages..."
46-
pip list
47-
if ! pip show django; then
48-
echo "Django is not installed!"
49-
exit 1
50-
fi
51-
52-
- name: Check Django version
53-
run: |
54-
echo "Checking Django version..."
5541
INSTALLED_VERSION=$(pip show django | grep Version | cut -d ' ' -f 2)
56-
REQUIRED_VERSION="4.2.19" # Требуемая версия Django
42+
REQUIRED_VERSION="4.2.19" # Существующая стабильная версия Django
5743
if [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION" ]; then
5844
echo "Incorrect Django version installed: $INSTALLED_VERSION. Required: $REQUIRED_VERSION"
5945
exit 1

0 commit comments

Comments
 (0)