From 7db29d55a7579d136a9cb3a93ca3dc953be14635 Mon Sep 17 00:00:00 2001 From: Leonid Lunin Date: Thu, 21 May 2026 15:56:23 +0200 Subject: [PATCH] CI: Use conda-build instead conda build (#1464) * repalce conda build with conda-build, bump actions versions * updated github actions versions to run on node 24 --------- Co-authored-by: Alice --- .github/workflows/build_documentation.yml | 6 +++--- .github/workflows/build_wheel.yml | 10 +++++----- .github/workflows/cmake.yaml | 4 ++-- .github/workflows/conda_deploy_library.yaml | 8 ++++---- .github/workflows/conda_deploy_slsdet.yaml | 8 ++++---- .github/workflows/conda_library.yaml | 8 ++++---- .github/workflows/conda_python.yaml | 8 ++++---- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index be3dc4a62..ebbce9606 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -35,7 +35,7 @@ jobs: shell: "bash -l {0}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 # Fetch all history for proper git operations token: ${{ secrets.GITHUB_TOKEN }} # Use the default token @@ -58,7 +58,7 @@ jobs: version: 1.0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.12 cache: 'pip' @@ -84,7 +84,7 @@ jobs: --date "$(date +'%d.%m.%Y')" - name: Checkout gh-pages - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: gh-pages path: gh-pages diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 05e4dc66c..9e1d2df20 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -20,12 +20,12 @@ jobs: os: [ubuntu-latest,] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build wheels run: pipx run cibuildwheel==3.2.1 - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl @@ -34,12 +34,12 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -54,7 +54,7 @@ jobs: # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v7 with: # unpacks all CIBW artifacts into dist/ pattern: cibw-* diff --git a/.github/workflows/cmake.yaml b/.github/workflows/cmake.yaml index 773700f1c..1c4d7b0f6 100644 --- a/.github/workflows/cmake.yaml +++ b/.github/workflows/cmake.yaml @@ -14,8 +14,8 @@ jobs: runs-on: ubuntu-latest name: Configure and build using cmake steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: 3.12 cache: 'pip' diff --git a/.github/workflows/conda_deploy_library.yaml b/.github/workflows/conda_deploy_library.yaml index 6b5fb996e..68d046aff 100644 --- a/.github/workflows/conda_deploy_library.yaml +++ b/.github/workflows/conda_deploy_library.yaml @@ -21,10 +21,10 @@ jobs: shell: "bash -l {0}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Get conda - uses: conda-incubator/setup-miniconda@v3.0.4 + uses: conda-incubator/setup-miniconda@v4 with: python-version: ${{ matrix.python-version }} channels: conda-forge @@ -38,10 +38,10 @@ jobs: - name: Build env: CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} - run: conda build conda-recipes/main-library --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output + run: conda-build conda-recipes/main-library --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output - name: Upload all Conda to github as artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: conda-packages path: build_output/** # Uploads all packages \ No newline at end of file diff --git a/.github/workflows/conda_deploy_slsdet.yaml b/.github/workflows/conda_deploy_slsdet.yaml index d25bffa74..4207132bf 100644 --- a/.github/workflows/conda_deploy_slsdet.yaml +++ b/.github/workflows/conda_deploy_slsdet.yaml @@ -21,10 +21,10 @@ jobs: shell: "bash -l {0}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Get conda - uses: conda-incubator/setup-miniconda@v3.0.4 + uses: conda-incubator/setup-miniconda@v4 with: python-version: ${{ matrix.python-version }} channels: conda-forge @@ -38,10 +38,10 @@ jobs: - name: Build env: CONDA_TOKEN: ${{ secrets.CONDA_TOKEN }} - run: conda build conda-recipes/python-client --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output + run: conda-build conda-recipes/python-client --user slsdetectorgroup --token ${CONDA_TOKEN} --output-folder build_output - name: Upload all Conda packages - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: conda-packages path: build_output/** # Uploads all packages \ No newline at end of file diff --git a/.github/workflows/conda_library.yaml b/.github/workflows/conda_library.yaml index 23f94d467..1086021c7 100644 --- a/.github/workflows/conda_library.yaml +++ b/.github/workflows/conda_library.yaml @@ -18,10 +18,10 @@ jobs: shell: "bash -l {0}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Get conda - uses: conda-incubator/setup-miniconda@v3.0.4 + uses: conda-incubator/setup-miniconda@v4 with: python-version: ${{ matrix.python-version }} channels: conda-forge @@ -33,10 +33,10 @@ jobs: run: conda config --set anaconda_upload no - name: Build - run: conda build conda-recipes/main-library --output-folder build_output + run: conda-build conda-recipes/main-library --output-folder build_output - name: Upload all Conda packages - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: conda-packages path: build_output/** # Uploads all packages \ No newline at end of file diff --git a/.github/workflows/conda_python.yaml b/.github/workflows/conda_python.yaml index 4b12cb3ff..86c8b3907 100644 --- a/.github/workflows/conda_python.yaml +++ b/.github/workflows/conda_python.yaml @@ -18,10 +18,10 @@ jobs: shell: "bash -l {0}" steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Get conda - uses: conda-incubator/setup-miniconda@v3.0.4 + uses: conda-incubator/setup-miniconda@v4 with: python-version: ${{ matrix.python-version }} channels: conda-forge @@ -33,10 +33,10 @@ jobs: run: conda config --set anaconda_upload no - name: Build - run: conda build conda-recipes/python-client --output-folder build_output + run: conda-build conda-recipes/python-client --output-folder build_output - name: Upload all Conda packages - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: conda-packages path: build_output/** # Uploads all packages \ No newline at end of file