Skip to content

Commit

Permalink
upgrade Django to 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
asim3 committed May 11, 2024
1 parent 04eedef commit 31e541a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,19 @@ jobs:
- name: Create New Django Project
run: if [ -x ./setup/set-new-django-project.bash ]; then echo ${PROJECT_NAME} | make init; fi;

- name: Copy Env File
run: cp ${PROJECT_NAME}/.env.sample ${PROJECT_NAME}/.env
- name: Copy Tests Env File
run: cp ./${PROJECT_NAME}/.env.sample ./${PROJECT_NAME}/.env

- name: Build Docker
run: >
GIT_REF=$(git rev-parse --verify HEAD);
docker image build --no-cache
-t ${PROJECT_IMAGE_NAME}:${GIT_REF}
.
-t ${PROJECT_IMAGE_NAME}:tests
-f ./deploy/Dockerfile . ;
- name: Run All Django Tests
run: >
GIT_REF=$(git rev-parse --verify HEAD);
docker container run --rm
-e DJANGO_SETTINGS_MODULE=${PROJECT_NAME}.settings.docker_dev
${PROJECT_IMAGE_NAME}:${GIT_REF} 'python3 manage.py test'
-e DJANGO_SETTINGS_MODULE=${PROJECT_NAME}.settings.docker_testing
-e DATABASE_URL=sqlite:///db.sqlite3
${PROJECT_IMAGE_NAME}:tests 'python3 manage.py test'
- name: Debug
run: >
ls -al ./;
ls -al ./init_test_github;
ls -al ./deploy;
ls -al ./.github/workflows;
6 changes: 3 additions & 3 deletions setup/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==3.2
Django==4.2
boto3==1.24.10
gunicorn==20.1.0
django-storages==1.12.3
Expand All @@ -9,7 +9,7 @@ python-dotenv==1.0.0
psycopg2==2.9.7

# REST
djangorestframework==3.13.1
djangorestframework==3.15.1
djangorestframework-simplejwt==5.2.0

# OpenAPI schema support
Expand All @@ -23,4 +23,4 @@ fpdf==1.7.2
qrcode==7.3.1

# captcha
django-simple-captcha==0.5.17
django-simple-captcha==0.5.20

0 comments on commit 31e541a

Please sign in to comment.