File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 99 branches :
1010 - " main"
1111 - " master"
12+
1213jobs :
1314
1415 build :
@@ -26,14 +27,19 @@ jobs:
2627 with :
2728 python-version : ${{ matrix.python-version }}
2829
29- - name : Install OpenSSl
30- run : sudo apt-get install openssl
30+ - name : Install OpenSSL
31+ run : sudo apt-get install -y openssl
3132
3233 - name : Generate private and public keys
3334 run : |
35+ # Очистка старых файлов перед созданием новых
36+ rm -rf security
3437 mkdir -p security
38+
39+ # Генерация приватного и публичного ключа
3540 openssl genpkey -algorithm RSA -out security/private_key.pem -pkeyopt rsa_keygen_bits:2048
3641 openssl rsa -pubout -in security/private_key.pem -out security/public_key.pem
42+
3743 echo "Private key saved as security/private_key.pem"
3844 echo "Public key saved as security/public_key.pem"
3945
4854 cat .env
4955
5056 - name : Clean up keys (Optional)
51- run : |
52- rm -rf security
53- echo "Keys removed after use."
54-
55- - name : Install Dependencies
56- run : |
57- python -m pip install --upgrade pip
58- pip install -r requirements.txt
59-
60- - name : Run Tests
61- run : |
62- python manage.py test
You can’t perform that action at this time.
0 commit comments