name: Param builder Python CI

on:
  push:
    paths:
      - 'python/**'
  pull_request:
    paths:
      - 'python/**'
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: python/capi_param_builder
    strategy:
      matrix:
        python-version: ['3.9', '3.10', '3.11']
    name: CI Test on Python ${{ matrix.python-version }}

    steps:
    - name: Checkout repository
      uses: actions/checkout@v4
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}
    - name: Unit test
      run: |
        python3 -m unittest test/test_param_builder.py
