fix thermostat naming, bump python to 3.12, entity value caching compatibility #35
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 | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install Rye | |
run: | | |
wget -qO /tmp/rye.gz https://github.com/mitsuhiko/rye/releases/latest/download/rye-x86_64-linux.gz | |
gunzip /tmp/rye.gz | |
chmod +x /tmp/rye | |
mv /tmp/rye /usr/local/bin/rye | |
mkdir -p $HOME/.rye | |
echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
rye --version | |
rye show | |
- name: Rye Sync | |
run: rye sync | |
- name: Type Check | |
run: rye run pyright | |
- name: Lint | |
run: rye run ruff check . | |
- name: Format Check | |
run: rye run black --check custom_components |