Skip to content

remove dcm2niix install, add window and osx to phantoms #9

remove dcm2niix install, add window and osx to phantoms

remove dcm2niix install, add window and osx to phantoms #9

name: Test Included Binaries
on:
push:
branches:
- main
- add-dcm2niix-binaries
pull_request:
branches:
- main
- add-dcm2niix-binaries
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run with tmate debugging enabled'
required: false
default: false
jobs:
test-included-binaries:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ['3.12']
fail-fast: false
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install UV
if: matrix.os != 'windows-latest'
run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Install UV (Windows)
if: matrix.os == 'windows-latest'
run: |
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
- name: Install dependencies
run: |
cd pypet2bids
uv add --dev pytest
uv sync
- name: Debug Session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
timeout-minutes: 15
with:
limit-access-to-actor: true
- name: Run Tests
run: |
cd pypet2bids
uv run pytest tests/test_included_binaries.py -v