Skip to content

Commit

Permalink
Merge pull request #59 from bolkedebruin/pre-commit
Browse files Browse the repository at this point in the history
Enable pre-commit and build tests
  • Loading branch information
koenhendriks authored Apr 13, 2024
2 parents 7ff7e6f + c93d69a commit 7c28870
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Hatch
run: pipx install hatch
#- name: Run tests
# run: hatch run test:test
- name: Build dist
run: hatch build
3 changes: 3 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
src: ./custom_components

8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[project]
name = "ha-button-plus"
dynamic = ["version"]

dependencies = [
"homeassistant",
"pre-commit",
]

0 comments on commit 7c28870

Please sign in to comment.