Skip to content

Fix light color modes #75

Fix light color modes

Fix light color modes #75

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get full python version
id: full-python-version
run: |
echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info[:3]))")
- name: Set up cache
uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Build venv
run: python -m venv .venv
- name: Install dependencies
run: .venv/bin/pip3 install isort black pylama
- name: isort
run: .venv/bin/isort --check custom_components/chargeamps
- name: black
run: .venv/bin/black --check custom_components/chargeamps
- name: pylama
run: .venv/bin/pylama custom_components/chargeamps