-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Use setup-conda action #47293
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
Use setup-conda action #47293
Changes from all commits
01be4f1
729e580
c992783
02cd874
3723a3f
75a328e
f5274fd
489526b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ inputs: | |
environment-file: | ||
description: Conda environment file to use. | ||
default: environment.yml | ||
environment-name: | ||
description: Name to use for the Conda environment | ||
default: test | ||
python-version: | ||
description: Python version to install | ||
required: false | ||
pyarrow-version: | ||
description: If set, overrides the PyArrow version in the Conda environment to the given string. | ||
required: false | ||
|
@@ -21,8 +27,11 @@ runs: | |
uses: conda-incubator/[email protected] | ||
with: | ||
environment-file: ${{ inputs.environment-file }} | ||
activate-environment: ${{ inputs.environment-name }} | ||
python-version: ${{ inputs.python-version }} | ||
channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }} | ||
channels: conda-forge | ||
mamba-version: "0.23" | ||
mamba-version: "0.24" | ||
use-mamba: true | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,8 @@ jobs: | |
|
||
# Although asv sets up its own env, deps are still needed | ||
# during discovery process | ||
- uses: conda-incubator/[email protected] | ||
with: | ||
activate-environment: pandas-dev | ||
channel-priority: strict | ||
environment-file: ${{ env.ENV_FILE }} | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml | ||
- name: Set up Conda | ||
uses: ./.github/actions/setup-conda | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Could we rename this actions There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The GHA convention seems to be I think we should stick to one style everywhere (action names, inputs, ...). Please make a decision if we want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay happy to change |
||
|
||
- name: Run benchmarks | ||
id: bench | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,15 +58,8 @@ jobs: | |
path: ~/conda_pkgs_dir | ||
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} | ||
|
||
- uses: conda-incubator/[email protected] | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
activate-environment: pandas-dev | ||
channel-priority: strict | ||
environment-file: ${{ env.ENV_FILE }} | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml | ||
- Name: Set up Conda | ||
uses: ./.github/actions/setup-conda | ||
|
||
- name: Build Pandas | ||
id: build | ||
|
@@ -128,15 +121,8 @@ jobs: | |
path: ~/conda_pkgs_dir | ||
key: ${{ runner.os }}-conda-${{ hashFiles('${{ env.ENV_FILE }}') }} | ||
|
||
- uses: conda-incubator/[email protected] | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
activate-environment: pandas-dev | ||
channel-priority: strict | ||
environment-file: ${{ env.ENV_FILE }} | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml | ||
- name: Set up Conda | ||
uses: ./.github/actions/setup-conda | ||
|
||
- name: Build Pandas | ||
id: build | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,19 +147,11 @@ jobs: | |
# xsel for clipboard tests | ||
run: sudo apt-get update && sudo apt-get install -y libc6-dev-i386 xsel ${{ env.EXTRA_APT }} | ||
|
||
- uses: conda-incubator/[email protected] | ||
- name: Set up Conda | ||
uses: ./.github/actions/setup-conda | ||
with: | ||
mamba-version: "*" | ||
channels: conda-forge | ||
activate-environment: pandas-dev | ||
channel-priority: flexible | ||
environment-file: ${{ env.ENV_FILE }} | ||
use-only-tar-bz2: true | ||
condarc-file: ci/condarc.yml | ||
|
||
- name: Upgrade Arrow version | ||
run: conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=${{ matrix.pyarrow_version }} | ||
if: ${{ matrix.pyarrow_version }} | ||
pyarrow-version: ${{ matrix.pyarrow_version }} | ||
|
||
- name: Build Pandas | ||
uses: ./.github/actions/build_pandas | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,12 +59,12 @@ jobs: | |
name: ${{matrix.python-version}}-sdist.gz | ||
path: dist/*.gz | ||
|
||
- uses: conda-incubator/[email protected] | ||
- name: Set up Conda | ||
uses: ./.github/actions/setup-conda | ||
with: | ||
activate-environment: pandas-sdist | ||
channels: conda-forge | ||
python-version: '${{ matrix.python-version }}' | ||
condarc-file: ci/condarc.yml | ||
environment-file: "" | ||
mroeschke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
environment-name: pandas-sdist | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install pandas from sdist | ||
run: | | ||
|
Uh oh!
There was an error while loading. Please reload this page.