Skip to content

Commit b24c5b0

Browse files
Merge pull request #1702 from IntelPython/use-conda-forge-for-anaconda-client
Use conda-forge channels instead of default everywhere
2 parents e24e263 + 5894870 commit b24c5b0

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/conda-package.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Add conda to system path
4545
run: echo $CONDA/bin >> $GITHUB_PATH
4646
- name: Install conda-build
47-
run: conda install conda-build
47+
run: conda install conda-build -c conda-forge --override-channels
4848
- name: Store conda paths as envs
4949
shell: bash -l {0}
5050
run: |
@@ -140,9 +140,9 @@ jobs:
140140
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
141141
- name: Add conda to system path
142142
run: echo $CONDA/bin >> $GITHUB_PATH
143-
- name: Install conda-build
143+
- name: Install conda-index
144144
# Needed to be able to run conda index
145-
run: conda install conda-build
145+
run: conda install conda-index -c conda-forge --override-channels
146146
- name: Create conda channel
147147
run: |
148148
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
@@ -352,7 +352,7 @@ jobs:
352352
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
353353

354354
- name: Install anaconda-client
355-
run: conda install anaconda-client
355+
run: conda install anaconda-client -c conda-forge --override-channels
356356
- name: Add conda to system path
357357
run: echo $CONDA/bin >> $GITHUB_PATH
358358
- name: Package version
@@ -393,7 +393,7 @@ jobs:
393393
activate-environment: ""
394394

395395
- name: Install anaconda-client
396-
run: conda install anaconda-client
396+
run: conda install anaconda-client -c conda-forge --override-channels
397397

398398
- name: Package version
399399
shell: bash -el {0}
@@ -425,9 +425,9 @@ jobs:
425425
BUILD_ENV_NAME: build_env
426426

427427
steps:
428-
- name: Install conda-build
428+
- name: Install conda-index
429429
# Needed to be able to run conda index
430-
run: conda install conda-build python=${{ matrix.python }}
430+
run: conda install conda-index -c conda-forge --override-channels
431431
- name: Checkout dpctl repo
432432
uses: actions/[email protected]
433433
with:
@@ -450,7 +450,9 @@ jobs:
450450
- name: Collect dependencies
451451
run: |
452452
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
453-
conda install $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
453+
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
454+
conda create -n ${{ env.EXAMPLES_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
455+
cat lockfile
454456
- name: Set pkgs_dirs
455457
run: |
456458
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
@@ -468,7 +470,7 @@ jobs:
468470
- name: Install example requirements
469471
shell: bash -l {0}
470472
env:
471-
DPCPP_CMPLR: dpcpp_linux-64">=2024.0"
473+
DPCPP_CMPLR: dpcpp_linux-64">=2024.1"
472474
run: |
473475
CHANNELS="${{ env.CHANNELS }}"
474476
. $CONDA/etc/profile.d/conda.sh
@@ -601,9 +603,9 @@ jobs:
601603
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
602604
- name: Add conda to system path
603605
run: echo $CONDA/bin >> $GITHUB_PATH
604-
- name: Install conda-build
606+
- name: Install conda-index
605607
# Needed to be able to run conda index
606-
run: conda install conda-build
608+
run: conda install conda-index -c conda-forge --override-channels
607609
- name: Create conda channel
608610
run: |
609611
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
@@ -712,7 +714,7 @@ jobs:
712714
python-version: '3.11'
713715

714716
- name: Install anaconda-client
715-
run: conda install anaconda-client
717+
run: conda install anaconda-client -c conda-forge --override-channels
716718

717719
- name: Checkout repo
718720
uses: actions/[email protected]

0 commit comments

Comments
 (0)