Skip to content

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

Merged
merged 8 commits into from
Jun 10, 2022
Merged

Use setup-conda action #47293

merged 8 commits into from
Jun 10, 2022

Conversation

jonashaag
Copy link
Contributor

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@jonashaag jonashaag marked this pull request as ready for review June 10, 2022 14:28
@jonashaag
Copy link
Contributor Author

@mroeschke

use-only-tar-bz2: true
condarc-file: ci/condarc.yml
- name: Set up Conda
uses: ./.github/actions/setup-conda
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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)

@mroeschke mroeschke added the CI Continuous Integration label Jun 10, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 10, 2022
Copy link
Member

@mroeschke mroeschke left a 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 }}') }}

@jonashaag
Copy link
Contributor Author

jonashaag commented Jun 10, 2022

Will send more PRs with caching changes soon :) The current caching is broken/badly implemented

@mroeschke mroeschke merged commit 3b6015f into pandas-dev:main Jun 10, 2022
@mroeschke
Copy link
Member

Thanks @jonashaag, looking forward to the followups :)

@jonashaag jonashaag mentioned this pull request Jun 13, 2022
6 tasks
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* Use setup-conda action

* Update action.yml

* Update posix.yml

* Update sdist.yml

* Update sdist.yml

* Update sdist.yml

* Update action.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants