Skip to content

Commit ea1c66a

Browse files
committed
fix: fixing again
1 parent 631d5f2 commit ea1c66a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/django.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- "master"
1212

1313
jobs:
14-
1514
build:
1615
runs-on: ubuntu-latest
1716
strategy:
@@ -23,12 +22,14 @@ jobs:
2322
uses: actions/checkout@v4
2423

2524
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v3
25+
uses: actions/setup-python@v5
2726
with:
2827
python-version: ${{ matrix.python-version }}
2928

30-
- name: Install OpenSSL
31-
run: sudo apt-get install -y openssl
29+
# ⚡ OpenSSL уже есть в образе, установка не нужна
30+
# если хочешь проверить наличие:
31+
- name: Check OpenSSL version
32+
run: openssl version
3233

3334
- name: Generate private and public keys
3435
run: |
@@ -40,28 +41,28 @@ jobs:
4041
4142
echo "Private key saved as security/private_key.pem"
4243
echo "Public key saved as security/public_key.pem"
43-
44+
4445
- name: Create .env file
4546
run: |
4647
touch .env
4748
echo PRIVATE_KEY_PATH=$(pwd)/security/private_key.pem >> .env
4849
echo PUBLIC_KEY_PATH=$(pwd)/security/public_key.pem >> .env
49-
DJANGO_SETTINGS_MODULE=core.settings.development >> .env
50+
echo DJANGO_SETTINGS_MODULE=core.settings.development >> .env
5051
echo DATABASE_ENVIRON=sqlite3 >> .env
5152
52-
5353
- name: Check if .env has been updated
5454
run: cat .env
5555

5656
- name: Install Dependencies
5757
run: |
5858
python -m pip install --upgrade pip
5959
pip install -r requirements.txt
60-
60+
6161
- name: Run Tests
6262
run: python manage.py test
6363

6464
- name: Clean up keys (Optional)
65+
if: always()
6566
run: |
6667
rm -rf security
6768
echo "Keys removed after use."

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ colorama==0.4.6
1111
crashtest==0.4.1
1212
cryptography==43.0.3
1313
distlib==0.4.0
14-
Django==5.2.5
14+
Django>=5.0,<6.0
1515
django-appconf==1.1.0
1616
django-ckeditor-5==0.2.18
1717
django-filter==24.3

0 commit comments

Comments
 (0)