diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index a71d3c64..c5697df5 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -18,6 +18,7 @@ on: env: PACKAGE_NAME: dpbench MODULE_NAME: dpbench + CHANNELS: 'dppy/label/dev,conda-forge,intel' VER_JSON_NAME: 'version.json' VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); " VER_SCRIPT2: "d = j['dpbench'][0]; print('='.join((d[s] for s in ('version', 'build'))))" @@ -57,7 +58,9 @@ jobs: with: auto-activate-base: true activate-environment: "" + channels: ${{ env.CHANNELS }} channel-priority: "disabled" + miniforge-version: latest - name: Store conda paths as envs shell: bash -l {0} @@ -74,12 +77,9 @@ jobs: with: vs-version: '14.35' - - name: Set conda channels - run: | - conda config --append channels dppy/label/dev - conda config --append channels conda-forge - conda config --append channels nodefaults - conda config --remove channels defaults + - name: Show conda-rc + shell: bash -el {0} + run: cat ~/.condarc - name: Build conda package run: conda build --python ${{ matrix.python }} conda-recipe @@ -124,14 +124,9 @@ jobs: python-version: ${{ matrix.python }} activate-environment: "" auto-activate-base: true + channels: ${{ env.CHANNELS }} channel-priority: "disabled" - - - name: Set conda channels - run: | - conda config --append channels dppy/label/dev - conda config --append channels conda-forge - conda config --append channels nodefaults - conda config --remove channels defaults + miniforge-version: latest - name: Store conda paths as envs shell: bash -l {0}