mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
test
This commit is contained in:
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -23,6 +23,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check-out repository
|
- name: Check-out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install libaudio Dependencies (macOS)
|
- name: Install libaudio Dependencies (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
@@ -101,8 +103,10 @@ jobs:
|
|||||||
run: uv sync
|
run: uv sync
|
||||||
|
|
||||||
- name: Run tests
|
- 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
|
continue-on-error: false
|
||||||
|
env:
|
||||||
|
PYTHONPATH: ${{ github.workspace }}
|
||||||
|
|
||||||
- name: Upload test artifacts
|
- name: Upload test artifacts
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|||||||
41
libs/__init__.py
Normal file
41
libs/__init__.py
Normal 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",
|
||||||
|
]
|
||||||
@@ -14,6 +14,7 @@ dependencies = [
|
|||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["test"]
|
testpaths = ["test"]
|
||||||
|
pythonpath = ["."]
|
||||||
python_files = "test_*.py"
|
python_files = "test_*.py"
|
||||||
python_classes = "Test*"
|
python_classes = "Test*"
|
||||||
python_functions = "test_*"
|
python_functions = "test_*"
|
||||||
|
|||||||
Reference in New Issue
Block a user