Skip to content

[pre-commit.ci] pre-commit autoupdate #293

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #293

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code
uses: "actions/checkout@v4"
- name: Set up Python 3.12
uses: "actions/setup-python@v5"
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install -r requirements.test.txt
- name: Run tests
run: |
pytest --cov=custom_components/aerogarden tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}