Test Structure Reorganization and CI Improvements (#5)

* Add GitHub Actions CI/CD workflows and status badges

* Fix CI workflow dependency installation

* Fix CI workflow: remove pip caching and add explicit requirements.txt

* Fix CI workflow: add system dependencies for PyGObject and pycairo

* Refactor code for improved readability and consistency

- Cleaned up whitespace and formatting in audio_feedback.py, config_manager.py, keyboard_shortcuts.py, tray_indicator.py, run_basic_tests.py, and test_basic.py.
- Enhanced the structure of the code by aligning comments and ensuring consistent indentation.
- Updated function definitions and calls to maintain a uniform style across the codebase.
- Improved logging messages for better clarity during debugging.
- Ensured all files end with a newline for better compatibility with various tools.

* Refactor imports for consistency and clarity across multiple modules

* Fix test imports by setting PYTHONPATH and adding conftest.py

* Update CI workflow to use Python 3.12 and ensure proper import path in tests

* Fix CI: Add GObject Introspection development dependencies

* Update CI: Use virtual environment like local setup

* Fix CI

* Update README and setup.py: Change Python version to 3.8 and correct author email

* Restructure tests for better organization and maintainability

* Fix formatting

* Update CI workflow to remove redundant test step

* Fix CI tests by properly mocking VOSK model loading

* Update CI and Tests

* Simplify
This commit is contained in:
Jatin K Malik
2025-04-16 20:23:40 -05:00
committed by GitHub
parent 7590332598
commit 3645c692fd
20 changed files with 996 additions and 682 deletions
+3 -2
View File
@@ -6,7 +6,7 @@ setup(
version="0.1.0",
description="A seamless voice dictation system for Linux",
author="Vocalinux Team",
author_email="project@example.com",
author_email="jatinkrmalik@gmail.com",
packages=find_packages(where="src"),
package_dir={"": "src"},
install_requires=[
@@ -23,6 +23,7 @@ setup(
"whisper": ["whisper", "torch"], # Optional Whisper AI support
"dev": [
"pytest",
"pytest-cov", # Add this for coverage testing
"black",
"isort",
"flake8",
@@ -42,5 +43,5 @@ setup(
"Programming Language :: Python :: 3",
"Topic :: Desktop Environment :: Gnome",
],
python_requires=">=3.6",
python_requires=">=3.8", # Updated minimum Python version
)