Skip to content

Commit

Permalink
Jupyter build
Browse files Browse the repository at this point in the history
Signed-off-by: Chaichontat Sriworarat <[email protected]>
  • Loading branch information
chaichontat committed Sep 23, 2022
1 parent 945b460 commit c5d4b68
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,34 @@ on:


jobs:
build:
jupyter-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
activate-environment: qmn
environment-file: environment.yml
use-mamba: true

- name: Execute and export
run: |
jupytext --to notebook modules/**/*.py
jupyter nbconvert --NbConvertApp.recursive_glob=True --output-dir=modules/jupyter --execute --to html modules/**/*.ipynb
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: modules/jupyter/

Rmd-build:
needs: jupyter-build
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -36,6 +63,11 @@ jobs:
- name: Render
run: Rscript render.R

- name: Download jupyter artifacts
uses: actions/download-artifact@v3
with:
path: modules/jupyter/

- name: Generate index
if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main'
run: Rscript genIndex.R
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ vignettes/*.pdf
*.pdf

**/data/**
*.ipynb
12 changes: 12 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: qmn

channels:
- conda-forge

dependencies:
- python=3.10
- jupyterlab
- jupytext
- scanpy
- seaborn
- pandas
File renamed without changes.

0 comments on commit c5d4b68

Please sign in to comment.