sbidy / pywizlight

A python connector for WiZ devices
MIT License
463 stars 79 forks source link

Fix broken pytest on github actions #163

Closed PrincipleOfLeastAction closed 5 months ago

PrincipleOfLeastAction commented 1 year ago

Hi, first time contributing to open-source project here sorry if I do anything wrong.

Issue

Version 0.19.0 of pytest-asyncio introduced a breaking change to the default asyncio mode. It changed the mode to strict which broke the pytest pipeline.

BREAKING: The default asyncio_mode is now strict.

Fix

To fix it, we set asyncio_mode to auto when running pytest on github actions. This fixes the pipeline on my master branch.

Hope this helps.