Skip to content

Commit

Permalink
Fix CI (#153)
Browse files Browse the repository at this point in the history
* fix ci

* fix miniconda path

* test caching

* fix github output

* bump to cache@v3

* add restore key

* test caching

* remove restore keys

* debug variables

* fix ls -l

* print miniconda path

* bump

* try with env

* try alternative path

* yet another ettempt

* yet another attempt

* bump

* test caching

* do not cache on windows and mac os x
  • Loading branch information
rcannood authored Dec 4, 2023
1 parent aba106d commit 83e5c42
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,19 @@ jobs:
needs: check

- name: Cache miniconda
uses: actions/cache@v2
uses: actions/cache@v3
if: runner.os == 'Linux'
# no need to cache on macOS or Windows, since it takes longer to unpack
# the cache than to install miniconda and dependencies
with:
path: "~/.local/share/r-miniconda"
key: ${{ runner.os }}-r${{ matrix.config.r }}-reticulate-miniconda
path: ~/.local/share/r-miniconda
key: ${{ runner.os }}-v${{ matrix.config.r }}-reticulate-miniconda

- name: Install Python dependencies for reticulate
run: |
reticulate::install_miniconda()
if (!reticulate:::miniconda_exists()) {
reticulate::install_miniconda()
}
reticulate::py_install(c("anndata", "scanpy"), pip = TRUE)
shell: Rscript {0}

Expand Down

0 comments on commit 83e5c42

Please sign in to comment.