From 423296c34f378025fa1c4952bec496e88750a849 Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Tue, 31 Oct 2023 14:36:03 +0100 Subject: [PATCH] github/workflows: add make po to check for faulty translation files --- .github/workflows/django.yml | 3 +++ changelog/_0002.md | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 changelog/_0002.md diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 50b38a36..e92332e8 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -66,12 +66,15 @@ jobs: npm run build pip install -r requirements/dev.txt pip install coveralls + sudo apt install gettext -y - name: Run Tests env: PGPASSWORD: postgres PGHOSTADDR: 127.0.0.1 run: | python manage.py collectstatic > /dev/null + python manage.py makemessages --all --no-obsolete --extension html,email,py --ignore venv --ignore node_modules + python manage.py makemessages --all --no-obsolete -d djangojs --ignore venv --ignore node_modules DJANGO_SETTINGS_MODULE='digitalstrategie.settings.travis' py.test --cov isort --diff -c digitalstrategie tests python manage.py makemigrations --dry-run --check --noinput diff --git a/changelog/_0002.md b/changelog/_0002.md new file mode 100644 index 00000000..5586a2e6 --- /dev/null +++ b/changelog/_0002.md @@ -0,0 +1,3 @@ +### Added + +- add check for faulty po files to CI