File tree Expand file tree Collapse file tree 2 files changed +40
-11
lines changed Expand file tree Collapse file tree 2 files changed +40
-11
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,12 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : " 3.9"
24+ cache : pip
2425
2526 - name : Upgrade pip
2627 run : |
2728 # install pip=>20.1 to use "pip cache dir"
2829 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-
4030
4131 - name : Install dependencies
4232 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