Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Sep 4, 2024
1 parent 611b7c1 commit dad18d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,24 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.10, 3.11]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: .github/workflows/environment.yaml
python-version: ${{ matrix.python-version }}

# this will set the system compiler;
# I don't know how to set the conda compilers for windows
- name: Set windows env
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: nifty-build-env
auto-update-conda: true
channels: conda-forge
environment-file: .github/workflows/environment.yaml
python-version: ${{ matrix.python-version }}
use-mamba: true
mamba-version: "*"
auto-activate-base: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

- name: Build linux
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- h5py
- nlohmann_json
- scikit-image
- xtensor>=0.21,<0.22
- xtensor-python>=0.24,<0.25
- vigra 1.11.1=*_1026
- xtensor
- xtensor-python
- vigra
- z5py

0 comments on commit dad18d4

Please sign in to comment.