Skip to content

Commit e3fb351

Browse files
authored
Merge pull request #57 from cloudblue/feature/LITE-21519
LITE-21519 Added support to Django 4.0 and bumped deps and workflows
2 parents 852953a + 1262c8e commit e3fb351

File tree

13 files changed

+31
-27
lines changed

13 files changed

+31
-27
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
build_3_6_7_django_3_1:
14-
name: Build on Python 3.6 and 3.7 and django 3.1
13+
build_3_6_7_8_django_2_2:
14+
name: Build on Python 3.6, 3.7, 3.8 and django 2.2
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.6, 3.7]
18+
python-version: [3.6, 3.7, 3.8]
1919
steps:
2020
- uses: actions/checkout@v2
2121
with:
@@ -30,7 +30,7 @@ jobs:
3030
pip install -r requirements/dev.txt
3131
pip install -r requirements/test.txt
3232
pip install pytest-cov
33-
pip install django==3.1.*
33+
pip install django==2.2.*
3434
- name: Linting
3535
run: |
3636
flake8
@@ -43,12 +43,12 @@ jobs:
4343
- name: Compatibility tests
4444
run: |
4545
./travis_compat_tests.sh
46-
build_3_8_django_2_2:
47-
name: Build on Python 3.8 django 2.2
46+
build_3_8_9_django_3_2:
47+
name: Build on Python 3.8, 3.9 django 3.2
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
python-version: [ 3.8 ]
51+
python-version: [3.8, 3.9]
5252
steps:
5353
- uses: actions/checkout@v2
5454
with:
@@ -63,7 +63,7 @@ jobs:
6363
pip install -r requirements/dev.txt
6464
pip install -r requirements/test.txt
6565
pip install pytest-cov
66-
pip install django==2.2.*
66+
pip install django==3.2.*
6767
- name: Linting
6868
run: |
6969
flake8
@@ -76,12 +76,12 @@ jobs:
7676
- name: Compatibility tests
7777
run: |
7878
./travis_compat_tests.sh
79-
build_3_8_django_3_1:
80-
name: Build on Python 3.8 django 3.1
79+
build_3_10_django_4_0:
80+
name: Build on Python 3.10 django 4.0
8181
runs-on: ubuntu-latest
8282
strategy:
8383
matrix:
84-
python-version: [ 3.8 ]
84+
python-version: [3.10.1]
8585
steps:
8686
- uses: actions/checkout@v2
8787
with:
@@ -96,7 +96,7 @@ jobs:
9696
pip install -r requirements/dev.txt
9797
pip install -r requirements/test.txt
9898
pip install pytest-cov
99-
pip install django==3.1.*
99+
pip install django==4.0.*
100100
- name: Linting
101101
run: |
102102
flake8
@@ -128,7 +128,7 @@ jobs:
128128
- name: Wait sonar to process report
129129
uses: jakejarvis/wait-action@master
130130
with:
131-
time: '60s'
131+
time: '120s'
132132
- name: SonarQube Quality Gate check
133133
uses: sonarsource/sonarqube-quality-gate-action@master
134134
timeout-minutes: 5

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
pip install -r requirements/dev.txt
2626
pip install -r requirements/test.txt
2727
pip install pytest-cov
28-
pip install django==3.1.*
28+
pip install django==3.2.*
2929
- name: Linting
3030
run: |
3131
flake8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django==3.2.5
1+
django==3.2.10
22
psycopg2==2.9.1
33
djangorestframework==3.12.4
44
django-cqrs

examples/demo_project/replica_service/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django==3.2.5
1+
django==3.2.10
22
djangorestframework==3.12.4
33
mysqlclient
44
django-redis

integration_tests/Dockerfile.Master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10
22

33
ENV DOCKERIZE_VERSION v0.6.1
44
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \

integration_tests/Dockerfile.MasterV1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10
22

33
ENV DOCKERIZE_VERSION v0.6.1
44
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \

integration_tests/Dockerfile.Replica

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10
22

33
ENV DOCKERIZE_VERSION v0.6.1
44
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \

integration_tests/Dockerfile.ReplicaV1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10
22

33
ENV DOCKERIZE_VERSION v0.6.1
44
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \

integration_tests/master_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@
5959
'CQRS_MESSAGE_TTL': 3600,
6060
},
6161
}
62+
63+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

integration_tests/replica_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@
6868
'dead_message_ttl': 5,
6969
},
7070
}
71+
72+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

0 commit comments

Comments
 (0)