File tree 2 files changed +40
-11
lines changed
2 files changed +40
-11
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,12 @@ jobs:
21
21
uses : actions/setup-python@v5
22
22
with :
23
23
python-version : " 3.9"
24
+ cache : pip
24
25
25
26
- name : Upgrade pip
26
27
run : |
27
28
# install pip=>20.1 to use "pip cache dir"
28
29
python3 -m pip install --upgrade pip
29
- - name : Get pip cache dir
30
- id : pip-cache
31
- run : echo "::set-output name=dir::$(pip cache dir)"
32
-
33
- - name : Cache dependencies
34
- uses : actions/cache@v4
35
- with :
36
- path : ${{ steps.pip-cache.outputs.dir }}
37
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38
- restore-keys : |
39
- ${{ runner.os }}-pip-
40
30
41
31
- name : Install dependencies
42
32
run : python3 -m pip install nox
Original file line number Diff line number Diff line change
1
+ name : Check Internationalization
2
+ # Ensure that the .po files are up to date with any changes to the guide text
3
+
4
+ on :
5
+ pull_request :
6
+ push :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ update-i18n :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Setup Python
17
+ uses : actions/setup-python@v5
18
+ with :
19
+ python-version : " 3.12"
20
+ cache : pip
21
+
22
+ - name : Install Nox
23
+ run : python3 -m pip install nox
24
+
25
+ - name : Update .po files
26
+ run : nox -s update-translations
27
+
28
+ - name : Test for uncommitted changes
29
+ run : |
30
+ if [ -z "$(git status --porcelain)" ];
31
+ then
32
+ echo "No changes detected"
33
+ exit 0
34
+ else
35
+ echo "Changes to models detected"
36
+ echo "$(git status)"
37
+ echo "$(git diff)"
38
+ exit 1
39
+ fi
You can’t perform that action at this time.
0 commit comments