add-test-qc #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Render R Markdown | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| render-rmd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v3 | |
| with: | |
| use-public-rspm: true | |
| # Cache R package installations | |
| - name: Cache R packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.R/ | |
| key: ${{ runner.os }}-R-${{ hashFiles('**/*.Rmd', '**/*.R') }} | |
| restore-keys: | | |
| ${{ runner.os }}-R- | |
| - name: Install necessary R packages | |
| run: | | |
| R -e 'install.packages("BiocManager")' | |
| R -e 'BiocManager::install("renv")' | |
| R -e 'BiocManager::install(renv::dependencies(path = "./01_quality_assessment/.")[["Package"]])' | |
| # Add any other package installations you need here | |
| # e.g., Rscript ./install_depedencies.R | |
| - name: Render R Markdown | |
| run: | | |
| Rscript -e 'rmarkdown::render("./01_quality_assessment/QC.Rmd")' | |
| - name: Upload HTML report | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: rendered-report | |
| path: ./01_quality_assessment/QC.html |