Skip to content

Commit

Permalink
Merge pull request #7 from RustamovAkrom/main
Browse files Browse the repository at this point in the history
update package versions
  • Loading branch information
RustamovAkrom authored Nov 12, 2024
2 parents 25c2e77 + af5dab8 commit d971dda
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,45 @@ jobs:
python-version: [3.8, 3.9]

steps:
- uses: actions/checkout@v4
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install OpenSSl
uses: sudo apt-get install openssl

- name: Generate private and public keys
uses: |
mkdir -p security
openssl rsa -pubout -in security/private_key.pem -out security/public_key.pem
echo "Private key saved as security/private_key.pem"
echo "Public key saved as security/public_key.pem"
- name: Create .env file
run: |
touch .env
echo PRIVATE_KEY_PATH=${{ secrets.PRIVATE_KEY_PATH }} >> .env
echo PUBLIC_KEY_PATH=${{ secrets.PUBLIC_KEY_PATH }} >> .env
- name: Check if .env has been updated
run: |
cat .env
- name: Clean up keys (Optional)
run: |
rm -rf security
echo "Keys removed after use."
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py test
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cryptography==43.0.3
Django==5.1.1
Django==4.2,<5
django-appconf==1.0.6
django_sitemaps==2.0.1
djangorestframework==3.15.2
Expand Down

0 comments on commit d971dda

Please sign in to comment.