Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mason committed Feb 6, 2025
1 parent 29d49da commit 2abe906
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,42 @@
name: Validate
name: Validate and Test

on:
push:
push:
branches:
- main
- develop
pull_request:

jobs:
validate-hacs:
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: HACS validation
uses: "hacs/action@main"
uses: hacs/action@main
with:
category: "integration"
category: "integration"

run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio
- name: Run tests
run: |
pytest tests --asyncio-mode=auto --disable-warnings -v

0 comments on commit 2abe906

Please sign in to comment.