32 lines
653 B
YAML
32 lines
653 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.8
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
pip install -r requirements-test.txt
|
|
- name: Lint with flake8
|
|
run: |
|
|
flake8 aiohue
|
|
- name: Pytest
|
|
run: |
|
|
pytest
|
|
- name: Check formatting with black
|
|
run: |
|
|
black hassrelease --check
|