Skip to content

Commit

Permalink
try to fix py install
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed May 22, 2024
1 parent 7d134b2 commit 88dd1c3
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/dev_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,15 @@ jobs:
with:
python-version: "3.10"

- name: setup giotto_env
shell: Rscript {0}
- name: Test python env install
run: |
path_to_python <- reticulate::virtualenv_create(
envname = "giotto_env",
python = Sys.which("python"), # placed on PATH by the setup-python action
packages = c(
"pandas==1.5.1",
"networkx==2.8.8",
"python-igraph==0.10.2",
"leidenalg==0.9.0",
"python-louvain==0.16",
"scikit-learn==1.1.3",
"scipy==1.13.0",
"scanpy"
)
)
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
if (!GiottoClass::checkGiottoEnvironment()) {
GiottoClass::installGiottoEnvironment()
}
reticulate::py_list_packages(envname = "giotto_env")
reticulate::conda_install(envname = 'giotto_env',packages = 'scanpy',pip = TRUE)
shell: Rscript {0}

- name: Run R CMD check
uses: r-lib/actions/check-r-package@v2
Expand Down

0 comments on commit 88dd1c3

Please sign in to comment.