Skip locale test if locales are not built, build locales in CI tests

This commit is contained in:
Philipp Wolfer
2023-06-09 09:05:19 +02:00
parent 79cbc53f4d
commit 866ef71dce
2 changed files with 18 additions and 1 deletions

View File

@@ -26,6 +26,17 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install -r requirements.txt
- name: Install gettext (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install gettext
- name: Install gettext (macOS)
if: runner.os == 'macOS'
run: |
brew install gettext
brew link gettext --force
echo "/usr/local/opt/gettext/bin" >> $GITHUB_PATH
- name: Check coding style
run: |
pip install flake8 "isort>=5"
@@ -35,6 +46,7 @@ jobs:
if: always()
timeout-minutes: 30
run: |
python setup.py build_locales -i
pip install pytest pytest-randomly pytest-cov
pytest --verbose --cov=picard --cov-report xml:coverage.xml test
- name: Test python-libdiscid (Linux)