Skip to content

Commit bd42194

Browse files
committed
Use micromamba with conda/bioconda for all dependencies
1 parent 7ae1692 commit bd42194

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,20 @@ jobs:
1717
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1818
env:
1919
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
20-
permissions:
21-
contents: write
2220
steps:
2321
- uses: actions/checkout@v4
2422

25-
- name: Install system dependencies
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y libhts-dev libbz2-dev zlib1g-dev libssl-dev libsqlite3-dev
29-
30-
- uses: r-lib/actions/setup-pandoc@v2
31-
32-
- uses: r-lib/actions/setup-r@v2
23+
- name: Install micromamba
24+
uses: mamba-org/setup-micromamba@v2
25+
with:
26+
environment-file: environment.yml
27+
init-shell: bash
28+
shell-startup: false
29+
isolate: false
3330

34-
- name: Install R dependencies
31+
- name: Build pkgdown site
3532
run: |
36-
Rscript -e 'install.packages(c(
37-
"pkgdown", "roxygen2",
38-
"Seurat", "monocle3", "glmGamPoi", "dplyr", "ggplot2", "patchwork",
39-
"Matrix", "RColorBrewer", "SummarizedExperiment", "fpc", "igraph",
40-
"jsonlite", "magrittr", "purrr", "scales", "scam", "tibble"
41-
), repos = "https://cloud.r-project.org")'
42-
43-
- name: Build site
44-
run: Rscript -e 'pkgdown::build_site()'
33+
micromamba run -n fastqdesign Rscript -e 'pkgdown::build_site()'
4534
4635
- name: Deploy to GitHub pages
4736
if: github.event_name != 'pull_request'

environment.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: fastqdesign
2+
channels:
3+
- conda-forge
4+
- bioconda
5+
dependencies:
6+
- r-base>=4.3
7+
- r-pkgdown
8+
- r-roxygen2
9+
- r-testthat
10+
- bioconductor-seurat
11+
- bioconductor-monocle3
12+
- r-glmgampoi
13+
- r-dplyr
14+
- r-ggplot2
15+
- r-patchwork
16+
- r-matrix
17+
- r-rcolorbrewer
18+
- bioconductor-summarizedexperiment
19+
- r-fpc
20+
- r-igraph
21+
- r-jsonlite
22+
- r-magrittr
23+
- r-purrr
24+
- r-scales
25+
- r-scam
26+
- r-tibble
27+
- htslib
28+
- cmake

0 commit comments

Comments
 (0)