Skip to content

update-pos

update-pos #8300

Workflow file for this run

---
name: CI (base)
on:
push:
pull_request:
defaults:
run:
shell: sh -ex {0}
jobs:
lint-and-style:
name: Static Analysis
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox libapt-pkg-dev intltool hunspell
- name: Git checkout
uses: actions/checkout@v3
- name: Formatting
run: tox -e black -e isort
- name: Style
run: tox -e flake8
- name: Mypy
run: tox -e mypy
- name: Version Consistency
run: python3 ./tools/check-versions-are-consistent.py
- name: Spellcheck messages
run: |
hunspell -p ./tools/spellcheck-allowed-words.txt -L ./uaclient/messages/__init__.py
hunspell -p ./tools/spellcheck-allowed-words.txt -l ./uaclient/messages/__init__.py
[ $(hunspell -p ./tools/spellcheck-allowed-words.txt -l ./uaclient/messages/__init__.py | wc -c) = "0" ]
- name: Translation Template Updated
run: |
./tools/update-pos.sh
[ $(git diff --ignore-matching-lines="POT-Creation-Date" | wc -c) = "0" ]
unit-tests:
name: Unit Tests
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox libapt-pkg-dev
- name: Git checkout
uses: actions/checkout@v3
- name: Unit
run: tox -e test