Skip to content

fixed some btns and enhanced CI tests #1

fixed some btns and enhanced CI tests

fixed some btns and enhanced CI tests #1

Workflow file for this run

name: Reusable Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 13, Col: 9): Unrecognized named-value: 'matrix'. Located at position 38 within expression: inputs.component == 'backend' && ( matrix.python-version == '3.14' || (matrix.python-version == '3.15' && github.event_name == 'push' && github.ref == 'refs/heads/main') )
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