Main #532
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: Main | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
jobs: | |
validate: | |
name: Validate | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "home-assistant/actions/hassfest@master" | |
- name: HACS Action | |
uses: "hacs/action@main" | |
with: | |
category: "integration" | |
pytest: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: asdf_install | |
uses: asdf-vm/actions/install@v3 | |
- name: Install Python modules | |
run: | | |
pip install -r requirements.test.txt | |
- name: Run unit tests | |
run: | | |
python -m pytest tests |