name: Python package

on:
  workflow_dispatch:
  pull_request:
    branches: [ '**' ]
    paths-ignore:
      - '**/*.md'
jobs:
  build:

    runs-on: ["ubuntu-latest"]
    strategy:
      matrix:
       python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

    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: |
          sudo apt-get update -qq
          sudo apt install -y build-essential python3-dev 

      - name: Install python dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
          python --version
          python -m pip install -vvv .

      - name: Test with pytest
        run: |
          pytest -vv
