File: sphinx-doc.yml

package info (click to toggle)
rpy2 3.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,412 kB
  • sloc: python: 18,448; ansic: 492; makefile: 197; sh: 166
file content (56 lines) | stat: -rw-r--r-- 1,676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Sphinx documentation

on: [push]

env:
  R-VERSION: "release"

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Set up Python
      uses: actions/setup-python@v4
      with:
        python-version: "3.10"
    - name: Set up R
      uses: r-lib/actions/setup-r@v2
      with:
        r-version: ${{ env.R-VERSION }}
    - name: Cache R packages
      uses: actions/cache@v4
      env:
        cache-name: cache-R-packages
      with:
        path: /opt/R/**/lib/R/library
        key: ${{ runner.os }}-R${{ env.R-VERSION }}-build-${{ env.cache-name }}
        restore-keys: |
          ${{ runner.os }}-${{ env.R_VERSION }}-build-
    - name: Set RSPM
      if: startsWith(matrix.os, 'ubuntu')
      run: |
        echo "RSPM=\"https://packagemanager.rstudio.com/cran/__linux__/$(lsb_release -sc)/latest\"" >> $GITHUB_ENV
    - name: Install dependencies
      run: |
        sudo apt-get update
        sudo apt-get install pandoc graphviz libgraphviz-dev
        python -m pip install --upgrade pip
        pip install 'rpy2-rinterface/[doc]'
        pip install 'rpy2-robjects/[doc]'
        sudo Rscript ./install_r_packages.r BiocManager dbplyr dplyr ggplot2 hexbin lazyeval RSQLite tidyr viridis
        sudo Rscript -e 'BiocManager::install("Biobase")'
    - name: Build HTML doc
      run: |
        export LD_LIBRARY_PATH=$(python -m rpy2.situation LD_LIBRARY_PATH):${LD_LIBRARY_PATH}
        python -m rpy2.situation
        cd doc
        make notebooks
        make html
    - name: Archive documentation
      uses: actions/upload-artifact@v4
      with:
        name: html-doc
        path: doc/_build/html