Skip to content

Commit ce1f106

Browse files
committed
CI: fix conda upload
- Fix failing CI due to redundant numpy builds no longer needed after #2156. - Lightweight alternative to #2196
1 parent 34cc7ee commit ce1f106

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,19 @@ jobs:
121121
mamba-version: "*"
122122
channels: conda-forge
123123
conda-remove-defaults: "true"
124+
- run: conda install boa anaconda-client
124125
- name: conda build & test
125126
working-directory: recipe
126127
run: |
127-
conda install boa
128128
conda mambabuild . -c conda-forge -c https://tomography.stfc.ac.uk/conda --override-channels --python=${{ matrix.python-version }} --numpy=${{ matrix.numpy-version }} --output-folder .
129129
- uses: actions/upload-artifact@v4
130130
with:
131131
name: cil-package-py${{ matrix.python-version }}-np${{ matrix.numpy-version }}
132132
path: recipe/linux-64/cil*
133133
- name: anaconda upload -c ccpi
134-
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
134+
if: >
135+
(github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')) && matrix.numpy-version == '1.26'
135136
run: |
136-
conda install anaconda-client
137137
anaconda -v -t ${{ secrets.CCPI_CONDA_TOKEN }} upload --force --label ${{ startsWith(github.ref, 'refs/tags') && 'main' || 'dev' }} recipe/linux-64/cil*
138138
- name: conda upload -c tomography.stfc.ac.uk/conda
139139
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)