1- name : Django CI
1+ name : Django Test
22
33on :
44 push :
@@ -20,23 +20,21 @@ jobs:
2020
2121 steps :
2222 - name : Check out the repository
23- uses : actions/checkout@v4 # This is an action, so it uses 'uses'
23+ uses : actions/checkout@v4
2424
2525 - 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
2727 with :
2828 python-version : ${{ matrix.python-version }}
2929
3030 - 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
3232
3333 - name : Generate private and public keys
3434 run : |
35- # Очистка старых файлов перед созданием новых
3635 rm -rf security
3736 mkdir -p security
3837
39- # Генерация приватного и публичного ключа
4038 openssl genpkey -algorithm RSA -out security/private_key.pem -pkeyopt rsa_keygen_bits:2048
4139 openssl rsa -pubout -in security/private_key.pem -out security/public_key.pem
4240
@@ -53,17 +51,17 @@ jobs:
5351
5452
5553 - name : Check if .env has been updated
56- run : cat .env # This is a command, so it uses 'run'
54+ run : cat .env
5755
5856 - name : Install Dependencies
5957 run : |
6058 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
6260
6361 - name : Run Tests
64- run : python manage.py test # This is a command, so it uses 'run'
62+ run : python manage.py test
6563
6664 - name : Clean up keys (Optional)
6765 run : |
6866 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