Skip to content

Commit

Permalink
ci: install/enable extra locales on ubuntu CI runner
Browse files Browse the repository at this point in the history
The ubuntu CI runner does not come with any locales enabled, so
we need to explicitly enable the following locales for
`test_basic::test_user_preferred_locale`:
 - en_US.UTF-8
 - en_US (= en_US.ISO8859-1)
 - sl_SI.UTF-8
 - sl_SI (= sl_SI.ISO8859-2)

In addition, `test_basic::test_time_module_localized` seems to
be using `cs_CZ.UTF-8`, so enable that as well.
  • Loading branch information
rokm committed Feb 17, 2024
1 parent 0b09b49 commit a6f3e4d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -65,6 +65,27 @@ jobs:
gir1.2-gtk-3.0 libgirepository1.0-dev \
libfuse2
# The following locales are required by test_basic::test_user_preferred_locale
# - en_US.UTF-8
# - en_US.ISO8859-1
# - sl_SI.UTF-8
# - sl_SI.ISO8859-2
#
# The following locale is used by test_basic::test_time_module_localized
# - cs_CZ.UTF-8
- name: Install and enable additional locales
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-install-recommends locales
sudo locale-gen \
en_US.UTF-8 \
en_US \
sl_SI.UTF-8 \
sl_SI \
cs_CZ.UTF-8
locale -a
- name: Download AppImage tool
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit a6f3e4d

Please sign in to comment.