Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI on both types of Macs #191

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
include:
- os: ubuntu-latest
python-version: "3.11"
- os: macos-latest
- os: macos-13 # Intel Mac
python-version: "3.10"
- os: macos-latest # ARM Mac
python-version: "3.10"
- os: windows-latest
python-version: "3.9"
Expand All @@ -43,6 +45,25 @@ jobs:
path: ~/.brainglobe
key: atlases

- name: Install HDF5 on Mac
if: matrix.os == 'macos-latest'
run: brew install hdf5

- name: Set up Conda on Apple Silicon
if: matrix.os == 'macos-latest'
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
channels: conda-forge
activate-environment: brainreg-env
- name: Install niftyreg via conda on Apple Silicon
if: matrix.os == 'macos-latest'
run: |
which python
conda install niftyreg
conda install libpng

- name: Setup QT libraries
uses: tlambert03/setup-qt-libs@v1

Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fix = true
[tool.tox]
legacy_tox_ini = """
[tox]
requires = tox-conda
envlist = py{38,39,310,311}
isolated_build = True

Expand All @@ -109,6 +110,10 @@ python =
3.11: py311

[testenv]
conda_deps =
niftyreg
conda_channels =
conda-forge
extras =
dev
napari
Expand Down
Loading