Skip to content

Test code with pytest #1011

Test code with pytest

Test code with pytest #1011

Workflow file for this run

name: Test code with pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.test.txt
- name: Test with pytest
run: |
pytest
- name: Test with pylint
run: |
pylint custom_components tests