Rename endpoint to access #10294
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" ] | |
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 |