File tree 2 files changed +33
-1
lines changed
2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 83
83
env :
84
84
CODECOV_TOKEN : ${{secrets.codecov_token}}
85
85
86
+ python3_12-django4_2-tests :
87
+ runs-on : ubuntu-latest
88
+ steps :
89
+ - uses : actions/checkout@v2
90
+ - name : Test py3.12-dj4.2
91
+ run : |
92
+ docker build --build-arg PYTHON_VERSION=3.12 --build-arg DJANGO_VERSION=4.2 -t native -f Dockerfile-tmpl .
93
+ docker run -e CODECOV_TOKEN=$CODECOV_TOKEN --rm native sh -c 'pytest --cov --cov-report=term-missing && codecov'
94
+ env :
95
+ CODECOV_TOKEN : ${{secrets.codecov_token}}
96
+
86
97
publish-pypi :
87
98
needs : [
88
99
quality-checks, python3_6-django1_11-tests,
Original file line number Diff line number Diff line change 8
8
build_dj2.0_py3.6 \
9
9
build_dj2.2_py3.8 \
10
10
build_dj3.2_py3.9 \
11
- build_dj4.1_py3.11
11
+ build_dj4.1_py3.11 \
12
+ build_dj4.2_py3.12
12
13
13
14
build_dj1.11_py3.6 :
14
15
DOCKER_BUILDKIT=1 docker build \
@@ -55,6 +56,15 @@ build_dj4.1_py3.11:
55
56
-t native:3.11-4.1-latest \
56
57
-f Dockerfile-tmpl .
57
58
59
+ build_dj4.2_py3.12 :
60
+ DOCKER_BUILDKIT=1 docker build \
61
+ --no-cache \
62
+ --progress=plain \
63
+ --build-arg PYTHON_VERSION=3.12 \
64
+ --build-arg DJANGO_VERSION=4.2 \
65
+ -t native:3.12-4.2-latest \
66
+ -f Dockerfile-tmpl .
67
+
58
68
# --- Code quality ---
59
69
60
70
code_quality :
@@ -86,6 +96,10 @@ shell_dj4.1_py3.11:
86
96
# Django 4.1 (Python 3.11)
87
97
docker run --rm -it --entrypoint bash native:3.11-4.1-latest
88
98
99
+ shell_dj4.2_py3.12 :
100
+ # Django 4.2 (Python 3.12)
101
+ docker run --rm -it --entrypoint bash native:3.12-4.2-latest
102
+
89
103
# --- Tests ---
90
104
91
105
localtests : \
@@ -94,6 +108,7 @@ localtests: \
94
108
tests_dj2.2_py3.8 \
95
109
tests_dj3.2_py3.9 \
96
110
tests_dj4.1_py3.11 \
111
+ tests_dj4.2_py3.12 \
97
112
tests_coverage
98
113
99
114
tests_dj1.11_py3.6 :
@@ -126,6 +141,12 @@ tests_dj4.1_py3.11:
126
141
--rm native:3.11-4.1-latest\
127
142
pytest --cov --cov-append --cov-report=term-missing
128
143
144
+ tests_dj4.2_py3.12 :
145
+ # Django 4.2 (Python 3.12)
146
+ docker run -v $(CUR_PATH ) :/usr/app \
147
+ --rm native:3.12-4.2-latest\
148
+ pytest --cov --cov-append --cov-report=term-missing
149
+
129
150
tests_coverage :
130
151
# Coverage report
131
152
docker run -v $(CUR_PATH ) :/usr/app \
You can’t perform that action at this time.
0 commit comments