Skip to content

Commit

Permalink
setup-miniconda: correct channel prio
Browse files Browse the repository at this point in the history
pypdfium2-team should be prioritized over bblanchon (not that it
currently matters, though)
See
https://github.com/conda-incubator/setup-miniconda#example-4-conda-options
for how this option is applied. Top means highest priority.
  • Loading branch information
mara004 committed Nov 22, 2023
1 parent a5f2c5b commit 01727fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/conda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
auto-update-conda: true
python-version: ${{ inputs.py_version }}
channels: bblanchon,pypdfium2-team
channels: pypdfium2-team,bblanchon
channel-priority: strict

- name: Prepare
Expand Down Expand Up @@ -128,12 +128,13 @@ jobs:

steps:

# FIXME custom channels probably not necessary here
- name: Miniconda setup
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.py }}
channels: bblanchon,pypdfium2-team
channels: pypdfium2-team,bblanchon
channel-priority: strict

- name: Install deps
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pypdfium2 includes helpers to simplify common use cases, while the raw PDFium/ct
uses: conda-incubator/setup-miniconda@v2
with:
# ... your options
channels: bblanchon,pypdfium2-team
channels: pypdfium2-team,bblanchon
channel-priority: strict
```
This is just a suggestion, you can also call `conda config` manually, or pass channels on command basis using `-c`, as discussed above.
Expand Down

0 comments on commit 01727fc

Please sign in to comment.