fix(release): Simplify shell script format #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality | |
| on: | |
| push: | |
| branches: [ main, master, develop ] | |
| pull_request: | |
| branches: [ main, master, develop ] | |
| jobs: | |
| syntax-check: | |
| runs-on: windows-latest | |
| name: Python Syntax Check | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Check Python syntax | |
| run: python .github/scripts/syntax_check.py | |
| lint-check: | |
| runs-on: windows-latest | |
| name: Code Linting | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install linters | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyflakes | |
| - name: Run pyflakes | |
| shell: pwsh | |
| run: | | |
| echo "Running pyflakes..." | |
| pyflakes main.py | |
| pyflakes core/overlay.py | |
| pyflakes core/input_mon.py | |
| pyflakes core/settings_manager.py | |
| pyflakes core/configuration.py | |
| pyflakes core/gui.py | |
| pyflakes core/logging_config.py | |
| pyflakes core/ui/components.py | |
| echo "No linting errors found" | |
| import-check: | |
| runs-on: windows-latest | |
| name: Import Validation | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pynput pywin32 PySide6 | |
| - name: Test imports | |
| shell: pwsh | |
| run: | | |
| echo "Testing module imports..." | |
| python -c "import main; print('main.py imports successfully')" | |
| python -c "import core.overlay; print('core.overlay imports successfully')" | |
| python -c "import core.input_mon; print('core.input_mon imports successfully')" | |
| python -c "import core.settings_manager; print('core.settings_manager imports successfully')" | |
| python -c "import core.configuration; print('core.configuration imports successfully')" | |
| python -c "import core.gui; print('core.gui imports successfully')" | |
| python -c "import core.ui.components; print('core.ui.components imports successfully')" | |
| python -c "import core.logging_config; print('core.logging_config imports successfully')" | |
| type-check: | |
| runs-on: windows-latest | |
| name: Type Validation | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Check type hints | |
| shell: pwsh | |
| run: python .github/scripts/type_check.py | |
| config-validation: | |
| runs-on: windows-latest | |
| name: Configuration Validation | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pynput pywin32 PySide6 | |
| - name: Validate config schema | |
| shell: pwsh | |
| run: python .github/scripts/config_validation.py | |
| summary: | |
| runs-on: windows-latest | |
| name: Quality Summary | |
| needs: [syntax-check, lint-check, import-check, type-check, config-validation] | |
| steps: | |
| - name: All checks passed | |
| run: | | |
| echo "## Quality Summary" | |
| echo "" | |
| echo "| Check | Status |" | |
| echo "|-------|--------|" | |
| echo "| Python Syntax | Passed |" | |
| echo "| Linting | Passed |" | |
| echo "| Imports | Passed |" | |
| echo "| Type Hints | Passed |" | |
| echo "| Config Validation | Passed |" | |
| echo "" | |
| echo "All quality checks passed successfully!" |