File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 5
5
paths :
6
6
- ' **.py'
7
7
- ' requirements/**.txt'
8
+ - ' requirements/**.in'
8
9
- ' **.html'
9
10
- ' **.mo'
10
11
- ' **.po'
11
12
pull_request :
12
13
paths :
13
14
- ' **.py'
14
15
- ' requirements/**.txt'
16
+ - ' requirements/**.in'
15
17
- ' **.html'
16
18
- ' **.mo'
17
19
- ' **.po'
18
20
merge_group :
19
21
paths :
20
22
- ' **.py'
21
23
- ' requirements/**.txt'
24
+ - ' requirements/**.in'
22
25
- ' **.html'
23
26
- ' **.mo'
24
27
- ' **.po'
34
37
- validate-migrations
35
38
- validate-assets
36
39
- validate-translations
40
+ - validate-requirements
37
41
- unittest
38
42
39
43
services :
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ commands=
172
172
# Invoke with: tox -e validate-translations
173
173
# Ensure that there are no changes to translatable strings that aren't
174
174
# contained in the comitted portable object files.
175
- # This ultimate tests whether the generated django.mo file has changed
175
+ # This ultimately tests whether the generated django.mo file has changed
176
176
# (the django.po file will change because it includes the date it was
177
177
# generated).
178
178
# NOTE: Requires gettext. Will overwrite any existing
@@ -191,6 +191,24 @@ commands=
191
191
git diff --quiet */locale/*/LC_MESSAGES/django.mo
192
192
193
193
194
+ [testenv:validate-requirements]
195
+ # Invoke with: tox -e validate-requirements
196
+ # Ensure that there are no changes to dependencies in our requirements/*.in
197
+ # files that haven't been compiled to the requirements/*.txt files.
198
+ # NOTE: Will overwrite any existing requirements/*.txt files
199
+ recreate =False
200
+ envdir ={toxworkdir}/unittest
201
+ deps =
202
+ {[unittest-config]deps}
203
+ setenv ={[unittest-config]setenv}
204
+ allowlist_externals =
205
+ ./compile-requirements.sh
206
+ git
207
+ commands =
208
+ ./compile-requirements.sh
209
+ git diff --quiet requirements/*.txt
210
+
211
+
194
212
[testenv:coverage]
195
213
# Invoke with: tox -e coverage
196
214
# Report out the coverage of changes on the current branch against the main
You can’t perform that action at this time.
0 commit comments