From 7326667463549924d4f4185ed6d098116236d93d Mon Sep 17 00:00:00 2001 From: k-dominik Date: Tue, 28 Jan 2025 15:42:55 +0100 Subject: [PATCH] updated CI pipelines/actions --- .github/workflows/deploy.yml | 15 ++++++++------- .github/workflows/test.yml | 21 +++++++++++---------- conda-recipe/meta.yaml | 1 + 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc14faa..dac2344 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,25 +11,26 @@ jobs: # noarch build - build on linux, only runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: ilastik/ilastik-conda-recipes path: ilastik-conda-recipes - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true auto-activate-base: true activate-environment: "" - miniforge-variant: Mambaforge - use-mamba: true + channel-priority: strict + miniforge-version: latest + conda-solver: libmamba - name: linux conda build and upload shell: bash -l {0} env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} run: | - mamba install -n base -c conda-forge boa setuptools_scm anaconda-client -y + mamba install -n base -c conda-forge conda-build anaconda-client -y mamba config --set anaconda_upload yes - conda mambabuild -c ilastik-forge -c conda-forge -m ilastik-conda-recipes/ilastik-pins.yaml --user ilastik-forge conda-recipe + conda build -c ilastik-forge -c conda-forge -m ilastik-conda-recipes/ilastik-pins.yaml --user ilastik-forge conda-recipe diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 399d0cd..fbf0770 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,27 +14,28 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: - activate-environment: "" - auto-activate-base: true auto-update-conda: true - miniforge-variant: Mambaforge - use-mamba: true + auto-activate-base: true + activate-environment: "" + channel-priority: strict + miniforge-version: latest + conda-solver: libmamba - name: install build deps - run: mamba install -n base -c conda-forge boa setuptools_scm -y + run: mamba install -n base -c conda-forge conda-build -y - name: linux conda build test if: matrix.os == 'ubuntu-latest' shell: bash -l {0} - run: conda mambabuild -c ilastik-forge -c conda-forge conda-recipe + run: conda build -c ilastik-forge -c conda-forge conda-recipe - name: osx test if: matrix.os == 'macos-latest' shell: bash -l {0} - run: conda mambabuild -c ilastik-forge -c conda-forge conda-recipe + run: conda build -c ilastik-forge -c conda-forge conda-recipe - name: windows conda-build if: matrix.os == 'windows-latest' shell: cmd /C CALL {0} - run: conda mambabuild -c ilastik-forge -c conda-forge conda-recipe + run: conda build -c ilastik-forge -c conda-forge conda-recipe diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 85c422a..03dad04 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -23,6 +23,7 @@ requirements: host: - python >=3.6 - setuptools + - setuptools_scm - pip run: - dpct