-
Notifications
You must be signed in to change notification settings - Fork 30
Use conda-forge channels instead of default everywhere #1702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
ac6a784
Use conda-forge channels instead of default everywhere
oleksandr-pavlyk d7068f0
Install conda-index instead of conda-build when only 'conda index' is…
oleksandr-pavlyk 5894870
test_example_linux to mimic what test_linux does in test dependencies…
oleksandr-pavlyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ jobs: | |
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install conda-build | ||
run: conda install conda-build | ||
run: conda install conda-build -c conda-forge --override-channels | ||
- name: Store conda paths as envs | ||
shell: bash -l {0} | ||
run: | | ||
|
@@ -140,9 +140,9 @@ jobs: | |
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} | ||
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install conda-build | ||
- name: Install conda-index | ||
# Needed to be able to run conda index | ||
run: conda install conda-build | ||
run: conda install conda-index -c conda-forge --override-channels | ||
- name: Create conda channel | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/channel/linux-64 | ||
|
@@ -352,7 +352,7 @@ jobs: | |
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }} | ||
|
||
- name: Install anaconda-client | ||
run: conda install anaconda-client | ||
run: conda install anaconda-client -c conda-forge --override-channels | ||
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Package version | ||
|
@@ -393,7 +393,7 @@ jobs: | |
activate-environment: "" | ||
|
||
- name: Install anaconda-client | ||
run: conda install anaconda-client | ||
run: conda install anaconda-client -c conda-forge --override-channels | ||
|
||
- name: Package version | ||
shell: bash -el {0} | ||
|
@@ -425,9 +425,9 @@ jobs: | |
BUILD_ENV_NAME: build_env | ||
|
||
steps: | ||
- name: Install conda-build | ||
- name: Install conda-index | ||
# Needed to be able to run conda index | ||
run: conda install conda-build python=${{ matrix.python }} | ||
run: conda install conda-index -c conda-forge --override-channels | ||
- name: Checkout dpctl repo | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -450,7 +450,9 @@ jobs: | |
- name: Collect dependencies | ||
run: | | ||
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}" | ||
conda install $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile | ||
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}") | ||
conda create -n ${{ env.EXAMPLES_ENV_NAME }} $PACKAGE_NAME=${PACKAGE_VERSION} python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile | ||
cat lockfile | ||
- name: Set pkgs_dirs | ||
run: | | ||
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc | ||
|
@@ -468,7 +470,7 @@ jobs: | |
- name: Install example requirements | ||
shell: bash -l {0} | ||
env: | ||
DPCPP_CMPLR: dpcpp_linux-64">=2024.0" | ||
DPCPP_CMPLR: dpcpp_linux-64">=2024.1" | ||
run: | | ||
CHANNELS="${{ env.CHANNELS }}" | ||
. $CONDA/etc/profile.d/conda.sh | ||
|
@@ -601,9 +603,9 @@ jobs: | |
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} | ||
- name: Add conda to system path | ||
run: echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install conda-build | ||
- name: Install conda-index | ||
# Needed to be able to run conda index | ||
run: conda install conda-build | ||
run: conda install conda-index -c conda-forge --override-channels | ||
- name: Create conda channel | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/channel/linux-64 | ||
|
@@ -712,7 +714,7 @@ jobs: | |
python-version: '3.11' | ||
|
||
- name: Install anaconda-client | ||
run: conda install anaconda-client | ||
run: conda install anaconda-client -c conda-forge --override-channels | ||
oleksandr-pavlyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.