Skip to content

Commit d971dda

Browse files
Merge pull request #7 from RustamovAkrom/main
update package versions
2 parents 25c2e77 + af5dab8 commit d971dda

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/django.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,45 @@ jobs:
1616
python-version: [3.8, 3.9]
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- name: Check out the repository
20+
uses: actions/checkout@v4
21+
2022
- name: Set up Python ${{ matrix.python-version }}
2123
uses: actions/setup-python@v3
2224
with:
2325
python-version: ${{ matrix.python-version }}
26+
- name: Install OpenSSl
27+
uses: sudo apt-get install openssl
28+
29+
- name: Generate private and public keys
30+
uses: |
31+
mkdir -p security
32+
33+
openssl rsa -pubout -in security/private_key.pem -out security/public_key.pem
34+
35+
echo "Private key saved as security/private_key.pem"
36+
echo "Public key saved as security/public_key.pem"
37+
38+
- name: Create .env file
39+
run: |
40+
touch .env
41+
echo PRIVATE_KEY_PATH=${{ secrets.PRIVATE_KEY_PATH }} >> .env
42+
echo PUBLIC_KEY_PATH=${{ secrets.PUBLIC_KEY_PATH }} >> .env
43+
44+
- name: Check if .env has been updated
45+
run: |
46+
cat .env
47+
48+
- name: Clean up keys (Optional)
49+
run: |
50+
rm -rf security
51+
echo "Keys removed after use."
52+
2453
- name: Install Dependencies
2554
run: |
2655
python -m pip install --upgrade pip
2756
pip install -r requirements.txt
57+
2858
- name: Run Tests
2959
run: |
3060
python manage.py test

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cryptography==43.0.3
2-
Django==5.1.1
2+
Django==4.2,<5
33
django-appconf==1.0.6
44
django_sitemaps==2.0.1
55
djangorestframework==3.15.2

0 commit comments

Comments
 (0)