Skip to content

fix(vacuum): fix pasue state in device has pause DP #62

fix(vacuum): fix pasue state in device has pause DP

fix(vacuum): fix pasue state in device has pause DP #62

Workflow file for this run

name: CI
on:
push:
branches: [master, dev]
pull_request:
workflow_dispatch:
env:
PY_VERSION: "3.13"
jobs:
base:
name: Prepare dependences
runs-on: ubuntu-latest
outputs:
PY_PATH: ${{ steps.install_depends.outputs.PY_PATH }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: ${{env.PY_VERSION}}
- name: "Install dependencies"
id: install_depends
run: |
echo "PY_PATH=${{env.pythonLocation}}" >> $GITHUB_OUTPUT
pip install -r requirements_test.txt
- name: "Cache dependencies"
uses: actions/[email protected]
with:
path: ${{env.pythonLocation}}
key: ${{ runner.os }}-pip-dependencies-${{ hashFiles('requirements.txt') }}
black:
name: Black codestyle
runs-on: ubuntu-latest
needs: base
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Restore Python
uses: actions/cache/[email protected]
with:
path: ${{needs.base.outputs.PY_PATH}}
fail-on-cache-miss: true
key: ${{ runner.os }}-pip-dependencies-${{ hashFiles('requirements.txt') }}
- name: "Black codestyle check"
run: ${{needs.base.outputs.PY_PATH}}/bin/black --check --diff .
codespell:
name: "Codespell check"
runs-on: ubuntu-latest
needs: base
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Restore Python
uses: actions/cache/[email protected]
with:
path: ${{needs.base.outputs.PY_PATH}}
fail-on-cache-miss: true
key: ${{ runner.os }}-pip-dependencies-${{ hashFiles('requirements.txt') }}
- name: "Codespell check"
run: ${{needs.base.outputs.PY_PATH}}/bin/codespell