name: macOS

on:
  # release:
  #   types: [published]
  push:
    branches:
      - unittests

permissions:
  contents: read

jobs:
  test-macos:
    runs-on: macos-latest
    steps:
      - name: Install DPRS
        uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.14"
      - name: Install Python
        run: |
          python -m pip install --upgrade pip
          pip install dprs
      - name: Check repo
        run: |
          ls -l $HOME/work/DPRS/DPRS
      - name: Run unit tests
        run: |
          cd $HOME/work/DPRS/DPRS
          ls -l .     
          python -m unittest discover tests
      - name: Run demo dp_test_1d.py in Python
        run: |
          cd $HOME/work/DPRS/DPRS/demos
          python dp_test_1d.py
      # - name: Run DemoDP.ipynb in IPython
      #   run: |
      #     cd $HOME/work/DPRS/DPRS/demos
      #     ipython DemoDP.ipynb
      # - name: Run SimulationDP.ipynb in IPython
      #   run: |
      #     cd $HOME/work/DPRS/DPRS/demos
      #     ipython SimulationDP.ipynb
