Skip to content
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

Add rworkflows #105

Closed
wants to merge 22 commits into from
Closed

Add rworkflows #105

wants to merge 22 commits into from

Conversation

bschilder
Copy link
Collaborator

anndataR 0.99.0

New features

  • Add rworkflows CI.
  • Update lint.yaml to use actions/checkout@v4 (which has less issues).
  • New function setup_conda automatically installs miniconda
    and sets up conda env: Automatically setup conda env #97
  • Change version to Bioc-recommended devel version: 0.99.0

@bschilder bschilder added the enhancement New feature or request label Sep 18, 2023
@bschilder bschilder requested a review from rcannood September 18, 2023 14:05
.github/workflows/pkgdown.yaml Outdated Show resolved Hide resolved
NEWS.md Show resolved Hide resolved
R/setup_conda.R Show resolved Hide resolved
man/setup_conda.Rd Outdated Show resolved Hide resolved
Comment on lines 43 to 54
- name: Install Python dependencies for reticulate
run: |
reticulate::install_miniconda()
reticulate::py_install(c("anndata", "scanpy"), pip = TRUE)
shell: Rscript {0}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will neurogenomics/rworkflows@master also install these packages?

Copy link
Collaborator Author

@bschilder bschilder Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to log our in-person discussion here, we talked about strategies for installing miniconda/anndata/scanpy.

Here are some of the proposed options:

  1. Trigger the setup_conda function whenever a AnnDataR function that requires miniconda/anndata/scanpy is used. We use this strategy for non-R dependencies in MAGMA.Celltyping, which requires the command line tool MAGMA for certain functions. The goal in that case is to remove any manual setup steps for the user. However, in the case of GHA, the only place that this would currently be triggered within AnnDataR is the unit tests, which @rcannood was opposed to. From a philosophical standpoint I have less of an issue with additional installs being triggered post-AnnDataR installation, but I do have some practical concerns that R might have some trouble using the reticulate conda env right after it's been created. For this reason basilisk might be a better option, which switches between envs much more smoothly.
  2. Add an optional step to rworkflows action to setup a conda env (I've actually been meaning to add this feature since its inception). Might be the best option tho, and shouldn't be too hard to implement (famous last words)
  3. On GHA, skip any tests that require miniconda/anndata/scanpy. Not a very good option, since it creates a huge blindspot during testing.
  4. Revert to the original GHA workflows and remove rworkflows. Easy short-term solution, but less so for the long-term.

@rcannood
Copy link
Collaborator

Can you merge the main branch into this PR?

Copy link
Collaborator

@rcannood rcannood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR contains a lot of changes which are not relevant to the rworkflows CI. I feel like this PR should only make changes to the .github folder (and maybe the README or the DESCRIPTION).

@bschilder
Copy link
Collaborator Author

This PR contains a lot of changes which are not relevant to the rworkflows CI. I feel like this PR should only make changes to the .github folder (and maybe the README or the DESCRIPTION).

I was a bit too optimistic about my other PR and thought that would become "main" quite soon. Seems like those changes are going to take a while to break up and review, so i can change this PR back.

@rcannood
Copy link
Collaborator

Closing this PR for now

@rcannood rcannood closed this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants