From 185a5d43859c8c7047f6108e80c5a9c851a626a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Mon, 22 Dec 2025 14:59:41 +0100 Subject: [PATCH 1/2] Run tests on Python 3.14 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57371e4..e6713fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - python-version: [ "3.10", "3.11", "3.12", "3.13" ] + python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ] steps: - name: Check out ${{ github.sha }} from repository ${{ github.repository }} uses: actions/checkout@v4 From 88c7a08bf1cf5e661f273a21ffcda892f8a0f4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Mon, 22 Dec 2025 15:03:27 +0100 Subject: [PATCH 2/2] Actually run the tests --- .github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6713fd..d24458b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,40 @@ defaults: shell: bash jobs: - checks: - name: Code checks - runs-on: ${{ matrix.os }} + lint: + name: Linting + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Install poetry + run: pipx install poetry + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: 'poetry' + + - name: Install dependencies + run: poetry install --no-interaction + + - name: Run pylint + run: poetry run pylint aiocomfoconnect/*.py + + - name: Check formatting with black + run: poetry run black --check aiocomfoconnect/*.py + + test: + name: Tests (Python ${{ matrix.python-version }}) + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - os: [ ubuntu-latest ] python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ] steps: - - name: Check out ${{ github.sha }} from repository ${{ github.repository }} + - name: Check out code uses: actions/checkout@v4 - name: Install poetry @@ -38,5 +62,5 @@ jobs: - name: Install dependencies run: poetry install --no-interaction - - name: Run checks - run: make check + - name: Run pytest + run: poetry run pytest --verbose