Bump pre-commit from 3.3.3 to 3.4.0 (#201) #386
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 actions | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate: | |
runs-on: "ubuntu-latest" | |
name: Validate | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: HACS validation | |
uses: "hacs/action@main" | |
with: | |
category: "integration" | |
ignore: brands | |
- name: Hassfest validation | |
uses: "home-assistant/actions/hassfest@master" | |
style: | |
runs-on: "ubuntu-latest" | |
name: Check style formatting | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v4" | |
- uses: isort/[email protected] | |
- uses: jpetrucciani/black-check@master | |
with: | |
python-version: "3.x" | |
- run: python3 -m pip install flake8 | |
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
- run: flake8 . --count --max-complexity=15 --max-line-length=127 --statistics | |
tests: | |
runs-on: "ubuntu-latest" | |
name: Run tests | |
steps: | |
- name: Check out code from GitHub | |
uses: "actions/checkout@v4" | |
- name: Setup Python | |
uses: "actions/setup-python@v4" | |
with: | |
python-version: "3.11" | |
- name: Install requirements | |
run: python3 -m pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
pytest . --cov=custom_components.moonraker --cov-report=xml | |
- name: Upload coverage reports to Codecov with GitHub Action | |
uses: codecov/codecov-action@v3 |