This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 74128b0 committed Dec 4, 2023 Verified
1 parent c5630a1 commit 74128b0 Copy full SHA for 74128b0
File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
paths :
6
6
- ' **.py'
7
- - ' requirements/**.txt '
7
+ - ' requirements/**.in '
8
8
- ' **.html'
9
9
- ' **.mo'
10
10
- ' **.po'
11
11
pull_request :
12
12
paths :
13
13
- ' **.py'
14
- - ' requirements/**.txt '
14
+ - ' requirements/**.in '
15
15
- ' **.html'
16
16
- ' **.mo'
17
17
- ' **.po'
18
18
merge_group :
19
19
paths :
20
20
- ' **.py'
21
- - ' requirements/**.txt '
21
+ - ' requirements/**.in '
22
22
- ' **.html'
23
23
- ' **.mo'
24
24
- ' **.po'
34
34
- validate-migrations
35
35
- validate-assets
36
36
- validate-translations
37
+ - validate-requirements
37
38
- unittest
38
39
39
40
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