Skip to content

Init channel-based reports#87

Open
dimalvovs wants to merge 3 commits into
mainfrom
feat/channel-based-reports
Open

Init channel-based reports#87
dimalvovs wants to merge 3 commits into
mainfrom
feat/channel-based-reports

Conversation

@dimalvovs

Copy link
Copy Markdown
Collaborator

This pull request adds support for rendering Quarto notebooks to HTML as part of the workflow, along with a test and a sample notebook for validation. The main changes include introducing a new Nextflow process for rendering, adding a test notebook fixture, and creating a corresponding test to ensure correct functionality.

Notebook rendering feature:

  • Added a new Nextflow process RENDER_NOTEBOOK in modules/local/report/render_notebook.nf to render Quarto .qmd notebooks to HTML using the quarto render command. The process accepts notebook and metadata inputs, and outputs an HTML file.

Testing and fixtures:

  • Added a sample Quarto notebook test.qmd in tests/fixtures/ using the knitr engine for compatibility, to serve as a test input.
  • Created a Nextflow process test in tests/modules/local/report/render_notebook.nf.test to verify that the RENDER_NOTEBOOK process correctly renders a basic notebook to HTML, including assertions for process success and output.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an initial, reusable Nextflow module for rendering Quarto notebooks to HTML, plus a small fixture and nf-test to validate the rendering behavior.

Changes:

  • Added a new RENDER_NOTEBOOK Nextflow process to run quarto render and emit an HTML report.
  • Added a minimal Quarto notebook fixture intended for use in tests.
  • Added an nf-test for RENDER_NOTEBOOK to validate process success and output production.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
modules/local/report/render_notebook.nf New module to render a provided .qmd into an HTML report via quarto render.
tests/fixtures/test.qmd New Quarto fixture notebook used as the render input for the module test.
tests/modules/local/report/render_notebook.nf.test New nf-test covering the RENDER_NOTEBOOK module output behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/local/report/render_notebook.nf
Comment thread modules/local/report/render_notebook.nf
Comment thread tests/fixtures/test.qmd
Comment on lines +1 to +9
---
title: "test notebook"
format: html
engine: knitr
---

```{python}
print("Hello world!")
```

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd still like to execute the test as opposed to a stub-style run.

Comment thread tests/modules/local/report/render_notebook.nf.test
Comment thread tests/modules/local/report/render_notebook.nf.test
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

Unit Test Results

11 tests  +1   11 ✅ +1   4m 0s ⏱️ +53s
 3 suites +1    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b23a86e. ± Comparison against base commit e931159.

♻️ This comment has been updated with latest results.

dimalvovs and others added 2 commits June 17, 2026 19:31
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants