| 1 | name: Test Suite |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [master, main] |
| 6 | pull_request: |
| 7 | |
| 8 | jobs: |
| 9 | test: |
| 10 | runs-on: ubuntu-latest |
| 11 | strategy: |
| 12 | fail-fast: false |
| 13 | matrix: |
| 14 | python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] |
| 15 | |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | |
| 19 | - name: Set up Python ${{ matrix.python-version }} |
| 20 | uses: actions/setup-python@v5 |
| 21 | with: |
| 22 | python-version: ${{ matrix.python-version }} |
| 23 | |
| 24 | - name: Install dependencies |
| 25 | run: | |
| 26 | python -m pip install --upgrade pip |
| 27 | pip install -e ".[test]" |
| 28 | |
| 29 | - name: Run CI tests (mocked, no hardware) |
| 30 | env: |
| 31 | CI: "true" |
| 32 | run: | |
| 33 | python -m pytest tests/ -m "not hardware" -v --tb=short |
| 34 | |
| 35 | - name: Verify JSON output mode |
| 36 | run: | |
| 37 | python -m s_tui.s_tui -j |