fixed some btns and enhanced CI tests #1
Workflow file for this run
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: Reusable Test | ||
|
Check failure on line 1 in .github/workflows/test.yml
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| component: | ||
| required: true | ||
| type: string | ||
| jobs: | ||
| test-backend: | ||
| runs-on: windows-latest | ||
| if: | | ||
| inputs.component == 'backend' && | ||
| ( | ||
| matrix.python-version == '3.14' || | ||
| (matrix.python-version == '3.15' && github.event_name == 'push' && github.ref == 'refs/heads/main') | ||
| ) | ||
| strategy: | ||
| fail-fast: true | ||
| max-parallel: 1 | ||
| matrix: | ||
| python-version: ["3.14", "3.15"] | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install .[test,gui] | ||
| - name: Run All Python Tests | ||
| run: | | ||
| pytest tests/ -v --tb=short | ||
| env: | ||
| PYTHONPATH: ${{ github.workspace }}/src | ||
| CI: true | ||
| GITHUB_ACTIONS: true | ||
| test-cli-core: | ||
| runs-on: windows-latest | ||
| if: inputs.component == 'cli' | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.14" | ||
| - name: Install Core (No GUI) | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install .[test] | ||
| - name: Run CLI Dynamic Tests | ||
| run: | | ||
| pytest tests/test_cli_dynamic.py tests/test_cli_core.py -v | ||
| env: | ||
| PYTHONPATH: ${{ github.workspace }}/src | ||