File tree Expand file tree Collapse file tree 2 files changed +32
-2
lines changed
Expand file tree Collapse file tree 2 files changed +32
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11cryptography == 43.0.3
2- Django == 5.1.1
2+ Django == 4.2 , < 5
33django-appconf == 1.0.6
44django_sitemaps == 2.0.1
55djangorestframework == 3.15.2
You can’t perform that action at this time.
0 commit comments