Skip to content

Commit fe22e96

Browse files
committed
fix: change error yml
1 parent 3842a6e commit fe22e96

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/django.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches:
1010
- "main"
1111
- "master"
12+
1213
jobs:
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
@@ -48,15 +54,3 @@ jobs:
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

0 commit comments

Comments
 (0)