-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
Conversation
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Could we rename this actions setup_conda
to match build_pandas
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GHA convention seems to be kebab-case
, see eg. https://github.com/conda-incubator/setup-miniconda/blob/main/action.yml#L23
I think we should stick to one style everywhere (action names, inputs, ...). Please make a decision if we want snake_case
or kebab-case
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay happy to change build_pandas
to build-pandas
then (feel free to change this in one of your other PRs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Do you think it also makes sense to add the caching of conda packages to this step too?
- name: Cache conda
uses: actions/cache@v3
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('${{ env.ENV_FILE }}') }}
Will send more PRs with caching changes soon :) The current caching is broken/badly implemented |
Thanks @jonashaag, looking forward to the followups :) |
* Use setup-conda action * Update action.yml * Update posix.yml * Update sdist.yml * Update sdist.yml * Update sdist.yml * Update action.yml
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.