ci: ruff + mypy + pytest on push/PR
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- run: pip install -e ".[dev]"
|
||||
- run: ruff check .
|
||||
- run: mypy custom_components/ev_solar_charger
|
||||
- run: pytest -v
|
||||
@@ -0,0 +1,18 @@
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- run: pip install -e ".[dev]"
|
||||
- run: ruff check .
|
||||
- run: mypy custom_components/ev_solar_charger
|
||||
- run: pytest -v
|
||||
Reference in New Issue
Block a user