Skip to content

Only automatically set the DateTimeIndex frequency if no "freq" is set in retrieve_hass_conf #792

Only automatically set the DateTimeIndex frequency if no "freq" is set in retrieve_hass_conf

Only automatically set the DateTimeIndex frequency if no "freq" is set in retrieve_hass_conf #792

Workflow file for this run

name: CodeCov
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.11'
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.11
- name: Generate Report
run: |
python -m pip install --upgrade pip
pip install coverage requests-mock
python setup.py install
coverage run -m --source=emhass unittest
coverage report
coverage xml
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}