From cc62f45e2b3227d988f5f346785ada54eec775cb Mon Sep 17 00:00:00 2001 From: k-dominik Date: Thu, 19 Jan 2023 09:57:50 +0100 Subject: [PATCH] add test workflow --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..77e2729 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,49 @@ +name: test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test-w-conda-recipe: + strategy: + matrix: + os: [macos-latest, windows-latest, ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: true + - uses: actions/checkout@v3 + with: + repository: ilastik/ilastik-conda-recipes + path: ilastik-conda-recipes + - uses: maxim-lobanov/setup-xcode@v1 + if: matrix.os == 'macos-latest' + with: + xcode-version: '14.0' + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + auto-activate-base: true + activate-environment: "" + channel-priority: strict + miniforge-variant: Mambaforge + use-mamba: true + - name: install common dependencies + run: mamba install -n base -c conda-forge conda-build boa -y + - name: linux conda build + if: matrix.os == 'ubuntu-latest' + shell: bash -l {0} + run: conda mambabuild -c conda-forge -m ilastik-conda-recipes/ilastik-pins.yaml conda-recipe + - name: osx conda build + if: matrix.os == 'macos-latest' + shell: bash -l {0} + run: conda mambabuild -c conda-forge -m ilastik-conda-recipes/ilastik-pins.yaml conda-recipe + - name: windows conda build + if: matrix.os == 'windows-latest' + shell: cmd /C CALL {0} + run: conda mambabuild -c conda-forge -m ilastik-conda-recipes/ilastik-pins.yaml conda-recipe