Skip to content

Commit

Permalink
ci: Reuse workflow for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 26, 2024
1 parent 1e586b8 commit c7d459e
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,5 @@ on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: Install translate-toolkit
run: |
sudo apt update
sudo apt install gettext translate-toolkit
- run: pip install -r requirements.txt
- run: python manage.py makemessages -a
- name: Count incomplete translations
shell: bash
run: |
output=$(find . -name LC_MESSAGES -not -path "*/en/*" -exec pocount --incomplete --short "{}" +)
echo $output
[ "$output" = "" ]
i18n:
uses: open-contracting/.github/.github/workflows/i18n-django.yml@main

0 comments on commit c7d459e

Please sign in to comment.