Align viewbox center with vacuum map center #1594
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 | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
env: | |
DEFAULT_PYTHON: "3.12" | |
jobs: | |
code-quality: | |
runs-on: "ubuntu-latest" | |
name: Check code quality | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
id: python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ env.DEFAULT_PYTHON }} | |
cache: "pip" | |
cache-dependency-path: "requirements*" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
# Following steps cannot run by pre-commit.ci as repo = local | |
- name: Run mypy | |
run: mypy deebot_client/ | |
- name: Pylint review | |
run: pylint deebot_client/ | |
- name: Verify no getLogger usages | |
run: scripts/check_getLogger.sh | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Run tests | |
strategy: | |
matrix: | |
python-version: ["3.12"] | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: Set up Python ${{ matrix.python-version }} | |
id: python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: "requirements*" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements-test.txt | |
- name: Run pytest | |
run: pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true |