Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 32 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
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
Expand All @@ -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