Skip to content

Commit

Permalink
Add python 3.12 to CI (#1851)
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Oct 21, 2023
1 parent fb8128f commit 501a7d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.12"]

steps:
- uses: "actions/checkout@v3"
Expand Down Expand Up @@ -59,19 +59,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
os: [ubuntu-latest, macos-latest, windows-latest]
# test pypy3 only on ubuntu as cryptography requires rust compilation
# which slows the pipeline and was not currently working on macos
exclude:
- python-version: pypy3.8
os: macos-latest
- python-version: pypy3.8
os: windows-latest
- python-version: 3.11-dev
os: macos-latest
- python-version: 3.11-dev
os: windows-latest
# Exclude example, in case needed again in the future:
# exclude:
# - python-version: pypy3.8
# os: macos-latest


steps:
- uses: "actions/checkout@v3"
Expand Down
2 changes: 1 addition & 1 deletion miio/device.py
Expand Up @@ -359,4 +359,4 @@ def change_setting(self, name: str, params=None):
return setting.setter(params)

def __repr__(self):
return f"<{self.__class__.__name__ }: {self.ip} (token: {self.token})>"
return f"<{self.__class__.__name__}: {self.ip} (token: {self.token})>"
2 changes: 1 addition & 1 deletion miio/devtools/propertytester.py
Expand Up @@ -33,7 +33,7 @@ def fail(x):
max_property_len = max(len(p) for p in properties)
for property in properties:
try:
click.echo(f"Testing {property:{max_property_len+2}} ", nl=False)
click.echo(f"Testing {property:{max_property_len + 2}} ", nl=False)
value = dev.get_properties([property])
# Handle list responses
if isinstance(value, list):
Expand Down

0 comments on commit 501a7d7

Please sign in to comment.