From ce1f1068dd9e6d7c167a21ace8cc86fddd4e8044 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Tue, 5 Aug 2025 15:39:15 +0100 Subject: [PATCH] CI: fix conda upload - Fix failing CI due to redundant numpy builds no longer needed after #2156. - Lightweight alternative to #2196 --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ec4f580b6..17af8211c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -121,19 +121,19 @@ jobs: mamba-version: "*" channels: conda-forge conda-remove-defaults: "true" + - run: conda install boa anaconda-client - name: conda build & test working-directory: recipe run: | - conda install boa conda mambabuild . -c conda-forge -c https://tomography.stfc.ac.uk/conda --override-channels --python=${{ matrix.python-version }} --numpy=${{ matrix.numpy-version }} --output-folder . - uses: actions/upload-artifact@v4 with: name: cil-package-py${{ matrix.python-version }}-np${{ matrix.numpy-version }} path: recipe/linux-64/cil* - name: anaconda upload -c ccpi - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') + if: > + (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) && matrix.numpy-version == '1.26' run: | - conda install anaconda-client anaconda -v -t ${{ secrets.CCPI_CONDA_TOKEN }} upload --force --label ${{ startsWith(github.ref, 'refs/tags') && 'main' || 'dev' }} recipe/linux-64/cil* - name: conda upload -c tomography.stfc.ac.uk/conda if: startsWith(github.ref, 'refs/tags')