Skip to content

Commit

Permalink
Try to fix coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Shutgun committed Oct 14, 2024
1 parent 7789ba5 commit 4aea420
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
pytest --cov=devolo_plc_api
- name: Preserve coverage
uses: actions/[email protected]
if: matrix.python-version == '3.8'
if: matrix.python-version == '3.9'
with:
name: coverage
path: .coverage
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"
python-version: "3.9"
- name: Download coverage
uses: actions/[email protected]
with:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_deviceapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test communicating with a the device API."""
from __future__ import annotations

import sys
from http import HTTPStatus
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -49,6 +50,7 @@ def test_feature(self, device_api: DeviceApi):
assert device_api.features == ["reset", "update", "led", "intmtg"]

@pytest.mark.asyncio
@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
@pytest.mark.parametrize("device_type", [DeviceType.PLC])
@pytest.mark.usefixtures("block_communication", "service_browser")
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_plcnetapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test communicating with a the plcnet API."""
import sys
from http import HTTPStatus

import pytest
Expand All @@ -20,6 +21,7 @@ class TestPlcApi:
"""Test devolo_plc_api.plcnet_api.plcnetapi.PlcNetApi class."""

@pytest.mark.asyncio
@pytest.mark.skipif(sys.version_info < (3, 9), reason="Tests with httpx_mock need at least Python 3.9")
@pytest.mark.parametrize("device_type", [DeviceType.PLC])
@pytest.mark.usefixtures("block_communication", "service_browser")
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
Expand Down

0 comments on commit 4aea420

Please sign in to comment.