Skip to content

Commit

Permalink
feat: support python 3.8 and 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mahnunchik committed Sep 23, 2024
1 parent ad8514c commit 4be3454
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
- release
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]
python-version: ['3.8', '3.10']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
if: steps.branch-names.outputs.is_tag == 'false'
run: |
git checkout gh-pages
git checkout ${{ steps.branch-names.outputs.current_branch }}
git checkout ${{ steps.branch-names.outputs.current_branch }}
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions mqtt_io/tests/features/steps/module_gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def step(context: Any, is_isnt: str, pin_name: str):

poller_task_pin_names = {
get_coro(task).cr_frame.f_locals["in_conf"]["name"]
for task in asyncio.Task.all_tasks(loop=mqttio.loop)
for task in asyncio.all_tasks(loop=mqttio.loop)
if get_coro(task).__name__ == "digital_input_poller"
}
if is_isnt == "is":
Expand Down Expand Up @@ -137,7 +137,7 @@ def step(context: Any, is_isnt: str, module_name: str):

task_modules = {
get_coro(task).cr_frame.f_locals["module"]
for task in asyncio.Task.all_tasks(loop=mqttio.loop)
for task in asyncio.all_tasks(loop=mqttio.loop)
if get_coro(task).__name__ == "digital_output_loop"
}
if is_isnt == "is":
Expand Down

0 comments on commit 4be3454

Please sign in to comment.