diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 32deb26..c93237b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,8 @@ jobs: steps: - name: Check-out repository uses: actions/checkout@v4 + with: + submodules: recursive - name: Install libaudio Dependencies (macOS) if: runner.os == 'macOS' @@ -101,8 +103,10 @@ jobs: run: uv sync - name: Run tests - run: uv run pytest -v --tb=short --color=yes + run: uv run pytest test/libs/ -v --tb=short --color=yes continue-on-error: false + env: + PYTHONPATH: ${{ github.workspace }} - name: Upload test artifacts if: failure() diff --git a/libs/__init__.py b/libs/__init__.py new file mode 100644 index 0000000..8fd3abb --- /dev/null +++ b/libs/__init__.py @@ -0,0 +1,41 @@ +""" +PyTaiko Libraries Package + +This package contains core libraries for the PyTaiko rhythm game. + +Modules: + animation: Animation system for game objects + audio: Audio engine for sound and music playback + background: Background rendering system + chara_2d: 2D character animation system + config: Configuration management + file_navigator: File and song navigation UI + global_data: Global data structures and enums + global_objects: Global UI objects (nameplate, timer, etc.) + screen: Base screen class for game states + song_hash: Song hashing and database management + texture: Texture loading and management + tja: TJA chart file parser + transition: Screen transition effects + utils: Utility functions and helpers + video: Video playback system +""" + +__version__ = "1.1" +__all__ = [ + "animation", + "audio", + "background", + "chara_2d", + "config", + "file_navigator", + "global_data", + "global_objects", + "screen", + "song_hash", + "texture", + "tja", + "transition", + "utils", + "video", +] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0fb983b..9a91024 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ dependencies = [ [tool.pytest.ini_options] testpaths = ["test"] +pythonpath = ["."] python_files = "test_*.py" python_classes = "Test*" python_functions = "test_*"