Afvalwijzer: Validation And Formatting #808
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: "Afvalwijzer: Validation And Formatting" | |
on: | |
push: | |
branches: | |
- master | |
- development | |
pull_request: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
hassfest: | |
runs-on: "ubuntu-latest" | |
name: Hassfest validation | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: HACS validation | |
uses: "hacs/action@main" | |
with: | |
category: "integration" | |
ignore: brands | |
- name: Hassfest validation | |
uses: "home-assistant/actions/hassfest@master" | |
style: | |
runs-on: "ubuntu-latest" | |
name: Check style formatting | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.x" | |
- run: python3 -m pip install black | |
- run: black . | |
# Tests still need to be implemented | |
# tests: | |
# runs-on: "ubuntu-latest" | |
# name: Run tests | |
# steps: | |
# - name: Check out code from GitHub | |
# uses: "actions/checkout@v4" | |
# - name: Setup Python | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: "3.9" | |
# cache: "pip" # caching pip dependencies | |
# - name: Install requirements | |
# run: python3 -m pip install -r requirements_test.txt | |
# - name: Run tests | |
# run: | | |
# pytest \ | |
# -qq \ | |
# --timeout=9 \ | |
# --durations=10 \ | |
# -n auto \ | |
# --cov custom_components.afvalwijzer \ | |
# -o console_output_style=count \ | |
# -p no:sugar \ | |
# tests |