Skip to content

Build CI fails when running tests #31

@EGJ-Moorington

Description

@EGJ-Moorington

As exposed by #30, the Build CI workflow fails when running tests/test_button_handler.py. The error message:

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_button_handler.py _________________
ImportError while importing test module '/home/runner/work/CircuitPython_Button_Handler/CircuitPython_Button_Handler/tests/test_button_handler.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/importlib/init.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_button_handler.py:10: in
from button_handler import *
button_handler.py:26: in
from keypad import Event, EventQueue
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/keypad.py:15: in
import digitalio
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/digitalio.py:12: in
from adafruit_blinka.agnostic import board_id, detector
E ModuleNotFoundError: No module named 'adafruit_blinka'
=========================== short test summary info ============================
ERROR tests/test_button_handler.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.15s ===============================
Error: Process completed with exit code 2.

No changes were made in this repository regarding workflows or tests on that branch, and this issue did not arise on other branches before.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions