File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- paths-ignore :
8
- - ' **.md'
9
7
pull_request :
10
8
branches :
11
9
- main
12
- paths-ignore :
13
- - ' **.md'
14
10
15
11
permissions :
16
12
contents : read # Только чтение содержимого репозитория
@@ -40,20 +36,10 @@ jobs:
40
36
exit 1
41
37
fi
42
38
43
- - name : Validate installed packages
39
+ - name : Validate Django version
44
40
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..."
55
41
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
57
43
if [ "$INSTALLED_VERSION" != "$REQUIRED_VERSION" ]; then
58
44
echo "Incorrect Django version installed: $INSTALLED_VERSION. Required: $REQUIRED_VERSION"
59
45
exit 1
You can’t perform that action at this time.
0 commit comments