1
- name : Django CI
1
+ name : Django Test
2
2
3
3
on :
4
4
push :
@@ -20,23 +20,21 @@ jobs:
20
20
21
21
steps :
22
22
- name : Check out the repository
23
- uses : actions/checkout@v4 # This is an action, so it uses 'uses'
23
+ uses : actions/checkout@v4
24
24
25
25
- name : Set up Python ${{ matrix.python-version }}
26
- uses : actions/setup-python@v3 # This is an action, so it uses 'uses'
26
+ uses : actions/setup-python@v3
27
27
with :
28
28
python-version : ${{ matrix.python-version }}
29
29
30
30
- name : Install OpenSSL
31
- run : sudo apt-get install -y openssl # This is a command, so it uses 'run'
31
+ run : sudo apt-get install -y openssl
32
32
33
33
- name : Generate private and public keys
34
34
run : |
35
- # Очистка старых файлов перед созданием новых
36
35
rm -rf security
37
36
mkdir -p security
38
37
39
- # Генерация приватного и публичного ключа
40
38
openssl genpkey -algorithm RSA -out security/private_key.pem -pkeyopt rsa_keygen_bits:2048
41
39
openssl rsa -pubout -in security/private_key.pem -out security/public_key.pem
42
40
@@ -53,17 +51,17 @@ jobs:
53
51
54
52
55
53
- name : Check if .env has been updated
56
- run : cat .env # This is a command, so it uses 'run'
54
+ run : cat .env
57
55
58
56
- name : Install Dependencies
59
57
run : |
60
58
python -m pip install --upgrade pip
61
- pip install -r requirements.txt # This is a command, so it uses 'run'
59
+ pip install -r requirements.txt
62
60
63
61
- name : Run Tests
64
- run : python manage.py test # This is a command, so it uses 'run'
62
+ run : python manage.py test
65
63
66
64
- name : Clean up keys (Optional)
67
65
run : |
68
66
rm -rf security
69
- echo "Keys removed after use." # This is a command, so it uses 'run'
67
+ echo "Keys removed after use."
0 commit comments