Skip to content

Commit

Permalink
Using HA 2023.2.5 in dev container.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbkarlsson authored Feb 27, 2023
1 parent 50f3b10 commit 80bcb78
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10"]
include:
- python-version: "3.9"
requirements: "requirements_test39.txt"
- python-version: "3.10"
requirements: "requirements_test.txt"
name: Run tests
steps:
- name: Check out code from GitHub
Expand All @@ -44,14 +49,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
run: python3 -m pip install -r ${{ matrix.requirements }}
- name: Run tests
run: |
pytest \
-qq \
--timeout=45 \
--durations=10 \
-n auto \
--asyncio-mode=auto \
--cov-report=xml \
--cov-report=term \
--cov custom_components.ev_smart_charging \
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10"]
include:
- python-version: "3.9"
requirements: "requirements_test39.txt"
- python-version: "3.10"
requirements: "requirements_test.txt"
name: Run tests
steps:
- name: Check out code from GitHub
Expand All @@ -48,14 +53,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt
run: python3 -m pip install -r ${{ matrix.requirements }}
- name: Run tests
run: |
pytest \
-qq \
--timeout=45 \
--durations=10 \
-n auto \
--asyncio-mode=auto \
--cov-report=xml \
--cov-report=term \
--cov custom_components.ev_smart_charging \
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"python.testing.cwd": "/workspaces/ev_smart_charging/tests",
"python.testing.pytestArgs": [
"--cov-report=html:cov_html",
"--cov=custom_components.ev_smart_charging"
"--cov=custom_components.ev_smart_charging",
"--asyncio-mode=auto"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
Expand Down
1 change: 1 addition & 0 deletions manage/pytest_all_ha_versions
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ pip3 list 2>/dev/null | grep homeassistant | grep -v "\-home"
pip3 list 2>/dev/null | grep pytest-homeassistant-custom-component
pytest -q --no-summary --asyncio-mode=auto tests

# As of 0.12.50, pytest-homeassistant-custom-component does not support Python 3.9.
echo
pip3 install -qq homeassistant==2023.2.5 pytest-homeassistant-custom-component==0.12.57
pip3 list 2>/dev/null | grep homeassistant | grep -v "\-home"
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
homeassistant==2022.11.4
homeassistant==2023.2.5
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest-homeassistant-custom-component==0.12.21
pytest-homeassistant-custom-component==0.12.57
1 change: 1 addition & 0 deletions requirements_test39.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest-homeassistant-custom-component==0.12.49

0 comments on commit 80bcb78

Please sign in to comment.