Skip to content

Commit 655fa72

Browse files
committed
Use test-translations workflow from common repository
1 parent e74dbaa commit 655fa72

File tree

1 file changed

+4
-49
lines changed

1 file changed

+4
-49
lines changed

.github/workflows/test-translations.yml

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Setup Python
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: '3.x'
21-
22-
- name: Install Trubar
23-
run: |
24-
pip install trubar
25-
26-
- name: Collect translations
27-
run: |
28-
cd i18n
29-
trubar collect -s ../orangecontrib/geo new.jaml
30-
trubar merge -u Obsolete.jaml si/msgs.jaml new.jaml
31-
trubar missing -o Missing.jaml new.jaml
32-
if [ ! -s Missing.jaml ]
33-
then
34-
rm Missing.jaml
35-
fi
36-
37-
- name: Check Slovenian translations
38-
run: |
39-
cd i18n
40-
for fn in Obsolete Missing
41-
do
42-
if [ -f $fn.jaml ]
43-
then
44-
echo "::group::$fn translations"
45-
cat $fn.jaml
46-
echo "::endgroup::"
47-
fi
48-
done
49-
echo "-------------------------------"
50-
trubar stat new.jaml
51-
echo "-------------------------------"
52-
if [ -f Missing.jaml ] || [ -f Obsolete.jaml ]
53-
then
54-
echo "### Missing or obsolete translations" >> $GITHUB_STEP_SUMMARY
55-
echo "::error::Missing or obsolete translations"
56-
echo "If you wish to fix this, see orange3/i18n/README.md"
57-
exit 1
58-
else
59-
echo "### All translations are up to date" >> $GITHUB_STEP_SUMMARY
60-
fi
12+
test-translations:
13+
uses: biolab/orange-ci-cd/.github/workflows/test-translations.yml@master
14+
with:
15+
package-dir: orangecontrib/geo

0 commit comments

Comments
 (0)