Try apt install python3-pyqt6
beforehand to resolve pyqt6 error on …
#396
This file contains 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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.11.1'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Install dcm2niix posix | |
if: runner.os != 'Windows' | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt update && apt install python3-pyqt6 | |
mkdir dcm2niix_install/ && cd dcm2niix_install/ | |
curl -fLO https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip | |
unzip dcm2niix*.zip | |
echo "${{ github.workspace }}/dcm2niix_install/" >> $GITHUB_PATH | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
brew install dcm2niix | |
fi | |
- name: Install dcm2niix windows | |
if: runner.os == 'Windows' | |
run: | | |
curl -fLO https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_win.zip | |
Expand-Archive dcm2niix_win.zip | |
Add-Content $env:GITHUB_PATH "${{ github.workspace }}/dcm2niix_win/" | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
make install | |
- name: Tests with pytest | |
run: | | |
make test |