Skip to content

pytest fails in github actions due to missing pyBigWig #124

Description

@thekugelmeister

pytest fails when running tests in github actions due to a missing or broken installation of pyBigWig.

Example of error (relevant piece copied below)

==================================== ERRORS ====================================
_________________ ERROR collecting dimelo/test/dimelo_test.py __________________
ImportError while importing test module '/home/runner/work/dimelo-toolkit/dimelo-toolkit/dimelo/test/dimelo_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../miniconda/envs/dimelo-toolkit/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dimelo/__init__.py:1: in <module>
    from . import (
dimelo/export.py:5: in <module>
    import pyBigWig
E   ModuleNotFoundError: No module named 'pyBigWig'
_____________________ ERROR collecting dimelo/test_data.py _____________________
ImportError while importing test module '/home/runner/work/dimelo-toolkit/dimelo-toolkit/dimelo/test_data.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../miniconda/envs/dimelo-toolkit/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dimelo/__init__.py:1: in <module>
    from . import (
dimelo/export.py:5: in <module>
    import pyBigWig
E   ModuleNotFoundError: No module named 'pyBigWig'
=========================== short test summary info ============================
ERROR dimelo/test/dimelo_test.py
ERROR dimelo/test_data.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.11s ===============================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions