Save detector response modifications to SampleSet.info.
          
            #549
        
      Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Run examples | |
| on: [push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| cache-dependency-path: "**/pyproject.toml" | |
| - name: Install HDF5 (macOS only) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install hdf5 | |
| brew install c-blosc2 | |
| - name: Set HDF5_DIR environment variable (macOS only) | |
| if: runner.os == 'macOS' | |
| run: | | |
| echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV | |
| echo "BLOSC2_DIR=$(brew --prefix c-blosc2)" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install -e ".[dev]" | |
| - name: Run examples | |
| run: | | |
| python examples/run_examples.py |