Bump ruff from 0.0.292 to 0.1.0 #228
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: "Lint and test" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
hassfest: # https://developers.home-assistant.io/blog/2020/04/16/hassfest | |
name: "Hassfest Validation" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout the repository" | |
uses: "actions/checkout@v4.1.0" | |
- name: "Run hassfest validation" | |
uses: "home-assistant/actions/hassfest@master" | |
hacs: # https://github.com/hacs/action | |
name: "HACS Validation" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout the repository" | |
uses: "actions/checkout@v4.1.0" | |
- name: "Run HACS validation" | |
uses: "hacs/action@main" | |
with: | |
category: "integration" | |
# Remove this 'ignore' key when you have added brand images for your integration to https://github.com/home-assistant/brands | |
ignore: "brands" | |
ruff: | |
name: "Ruff" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout the repository" | |
uses: "actions/checkout@v4.1.0" | |
- name: "Set up Python" | |
uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: "Install requirements" | |
run: python3 -m pip install -r requirements.txt | |
- name: "Run" | |
run: python3 -m ruff check . | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Run tests | |
steps: | |
- name: Check out code from GitHub | |
uses: "actions/checkout@v4.1.0" | |
- name: Setup Python | |
uses: "actions/setup-python@v4.7.1" | |
with: | |
python-version: "3.11" | |
- name: Install requirements | |
run: python3 -m pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
pytest \ | |
-qq \ | |
--timeout=9 \ | |
--durations=10 \ | |
-n auto \ | |
--cov custom_components.stiebel_eltron_isg \ | |
-o console_output_style=count \ | |
-p no:sugar \ | |
tests |