Add example tests (#50)

This commit is contained in:
Raman Gupta
2021-01-13 11:17:25 -06:00
committed by GitHub
parent f85cbb043d
commit e059bc7cc5
18 changed files with 454 additions and 6 deletions

View File

@@ -31,4 +31,28 @@ jobs:
with:
python-version: "3.x"
- run: python3 -m pip install black
- run: black .
- run: black .
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v2"
- name: Setup Python
uses: "actions/setup-python@v1"
with:
python-version: "3.8"
- 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.integration_blueprint \
-o console_output_style=count \
-p no:sugar \
tests