This commit is contained in:
Yonokid
2025-12-27 18:39:50 -05:00
parent 109719b7f5
commit c36be89728
3 changed files with 47 additions and 1 deletions

View File

@@ -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()

41
libs/__init__.py Normal file
View File

@@ -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",
]

View File

@@ -14,6 +14,7 @@ dependencies = [
[tool.pytest.ini_options]
testpaths = ["test"]
pythonpath = ["."]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"