Skip to content

Commit 596e6c0

Browse files
committed
✅ test all report types based on quarto (update static path setting)
1 parent 2ff06f8 commit 596e6c0

File tree

8 files changed

+36
-26
lines changed

8 files changed

+36
-26
lines changed

.github/workflows/cdci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,17 @@ jobs:
127127
echo "Error: One or more protected files have been modified."
128128
exit 1
129129
fi
130-
130+
- name: check for changes in quarto report files
131+
run: |
132+
# write quarto based report to test folder
133+
for format in html pdf docx odt revealjs pptx jupyter; do
134+
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook/$format -rt $format
135+
# Check for changes
136+
if git diff tests/report_examples | grep .; then
137+
echo Failed for report: $format
138+
echo "Error: One or more protected files have been modified."
139+
exit 1
140+
fi
131141
132142
publish:
133143
name: Publish package to PyPI

tests/report_examples/Basic_example_vuegen_demo_notebook/docx/quarto_report/quarto_report.qmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fig_plotly.write_image("static/Plotly_Plot_R.png")
193193
194194
df = pd.read_csv(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/1_phyla_correlation_network_csv.csv')
195195
196-
df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
196+
df.dfi.export('static/Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
197197
```
198198

199199
![](static/Phyla_Correlation_Network_Csv.png){fig-alt= width=90%}
@@ -205,7 +205,7 @@ df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, tabl
205205
206206
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls')
207207
208-
df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
208+
df.dfi.export('static/Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
209209
```
210210

211211
![](static/Abundance_Table_Example_Xls.png){fig-alt= width=90%}
@@ -217,7 +217,7 @@ df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_
217217
218218
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls', sheet_name='infos')
219219
220-
df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
220+
df.dfi.export('static/Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
221221
```
222222

223223
![](static/Abundance_Table_Example_Xls_infos.png){fig-alt= width=90%}
@@ -229,7 +229,7 @@ df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5,
229229
230230
df = pd.read_table(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/3_sample_info_example_txt.txt')
231231
232-
df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
232+
df.dfi.export('static/Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
233233
```
234234

235235
![](static/Sample_Info_Example_Txt.png){fig-alt= width=90%}
@@ -241,7 +241,7 @@ df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conv
241241
242242
df = pd.read_parquet(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/4_sample_info_example_parquet.parquet')
243243
244-
df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
244+
df.dfi.export('static/Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
245245
```
246246

247247
![](static/Sample_Info_Example_Parquet.png){fig-alt= width=90%}
@@ -253,7 +253,7 @@ df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_
253253
254254
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/5_example_xlsx.xlsx')
255255
256-
df.dfi.export('Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
256+
df.dfi.export('static/Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
257257
```
258258

259259
![](static/Example_Xlsx.png){fig-alt= width=90%}
@@ -288,7 +288,7 @@ Optional description for subsection.
288288
### Readme
289289

290290
```{python}
291-
#| label: 'Readme 4'
291+
#| label: 'Readme 3'
292292
#| fig-cap: ""
293293
294294

tests/report_examples/Basic_example_vuegen_demo_notebook/html/quarto_report/quarto_report.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Optional description for subsection.
307307
### Readme
308308

309309
```{python}
310-
#| label: 'Readme 4'
310+
#| label: 'Readme 3'
311311
#| fig-cap: ""
312312
313313

tests/report_examples/Basic_example_vuegen_demo_notebook/jupyter/quarto_report/quarto_report.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ Optional description for subsection.
307307
### Readme
308308

309309
```{python}
310-
#| label: 'Readme 4'
310+
#| label: 'Readme 3'
311311
#| fig-cap: ""
312312
313313

tests/report_examples/Basic_example_vuegen_demo_notebook/odt/quarto_report/quarto_report.qmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fig_plotly.write_image("static/Plotly_Plot_R.png")
193193
194194
df = pd.read_csv(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/1_phyla_correlation_network_csv.csv')
195195
196-
df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
196+
df.dfi.export('static/Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
197197
```
198198

199199
![](static/Phyla_Correlation_Network_Csv.png){fig-alt= width=90%}
@@ -205,7 +205,7 @@ df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, tabl
205205
206206
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls')
207207
208-
df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
208+
df.dfi.export('static/Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
209209
```
210210

211211
![](static/Abundance_Table_Example_Xls.png){fig-alt= width=90%}
@@ -217,7 +217,7 @@ df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_
217217
218218
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls', sheet_name='infos')
219219
220-
df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
220+
df.dfi.export('static/Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
221221
```
222222

223223
![](static/Abundance_Table_Example_Xls_infos.png){fig-alt= width=90%}
@@ -229,7 +229,7 @@ df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5,
229229
230230
df = pd.read_table(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/3_sample_info_example_txt.txt')
231231
232-
df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
232+
df.dfi.export('static/Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
233233
```
234234

235235
![](static/Sample_Info_Example_Txt.png){fig-alt= width=90%}
@@ -241,7 +241,7 @@ df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conv
241241
242242
df = pd.read_parquet(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/4_sample_info_example_parquet.parquet')
243243
244-
df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
244+
df.dfi.export('static/Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
245245
```
246246

247247
![](static/Sample_Info_Example_Parquet.png){fig-alt= width=90%}
@@ -253,7 +253,7 @@ df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_
253253
254254
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/5_example_xlsx.xlsx')
255255
256-
df.dfi.export('Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
256+
df.dfi.export('static/Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
257257
```
258258

259259
![](static/Example_Xlsx.png){fig-alt= width=90%}
@@ -288,7 +288,7 @@ Optional description for subsection.
288288
### Readme
289289

290290
```{python}
291-
#| label: 'Readme 4'
291+
#| label: 'Readme 3'
292292
#| fig-cap: ""
293293
294294

tests/report_examples/Basic_example_vuegen_demo_notebook/pdf/quarto_report/quarto_report.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Optional description for subsection.
298298
### Readme
299299

300300
```{python}
301-
#| label: 'Readme 4'
301+
#| label: 'Readme 3'
302302
#| fig-cap: ""
303303
304304

tests/report_examples/Basic_example_vuegen_demo_notebook/pptx/quarto_report/quarto_report.qmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fig_plotly.write_image("static/Plotly_Plot_R.png")
194194
195195
df = pd.read_csv(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/1_phyla_correlation_network_csv.csv')
196196
197-
df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
197+
df.dfi.export('static/Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
198198
```
199199

200200
![](static/Phyla_Correlation_Network_Csv.png){fig-alt= width=90%}
@@ -206,7 +206,7 @@ df.dfi.export('Phyla_Correlation_Network_Csv.png', max_rows=10, max_cols=5, tabl
206206
207207
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls')
208208
209-
df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
209+
df.dfi.export('static/Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
210210
```
211211

212212
![](static/Abundance_Table_Example_Xls.png){fig-alt= width=90%}
@@ -218,7 +218,7 @@ df.dfi.export('Abundance_Table_Example_Xls.png', max_rows=10, max_cols=5, table_
218218
219219
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/2_abundance_table_example_xls.xls', sheet_name='infos')
220220
221-
df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
221+
df.dfi.export('static/Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
222222
```
223223

224224
![](static/Abundance_Table_Example_Xls_infos.png){fig-alt= width=90%}
@@ -230,7 +230,7 @@ df.dfi.export('Abundance_Table_Example_Xls_infos.png', max_rows=10, max_cols=5,
230230
231231
df = pd.read_table(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/3_sample_info_example_txt.txt')
232232
233-
df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
233+
df.dfi.export('static/Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
234234
```
235235

236236
![](static/Sample_Info_Example_Txt.png){fig-alt= width=90%}
@@ -242,7 +242,7 @@ df.dfi.export('Sample_Info_Example_Txt.png', max_rows=10, max_cols=5, table_conv
242242
243243
df = pd.read_parquet(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/4_sample_info_example_parquet.parquet')
244244
245-
df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
245+
df.dfi.export('static/Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
246246
```
247247

248248
![](static/Sample_Info_Example_Parquet.png){fig-alt= width=90%}
@@ -254,7 +254,7 @@ df.dfi.export('Sample_Info_Example_Parquet.png', max_rows=10, max_cols=5, table_
254254
255255
df = pd.read_excel(report_dir / '../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/2_Dataframes/1_All_formats/5_example_xlsx.xlsx')
256256
257-
df.dfi.export('Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
257+
df.dfi.export('static/Example_Xlsx.png', max_rows=10, max_cols=5, table_conversion='matplotlib')
258258
```
259259

260260
![](static/Example_Xlsx.png){fig-alt= width=90%}
@@ -289,7 +289,7 @@ Optional description for subsection.
289289
### Readme
290290

291291
```{python}
292-
#| label: 'Readme 4'
292+
#| label: 'Readme 3'
293293
#| fig-cap: ""
294294
295295

tests/report_examples/Basic_example_vuegen_demo_notebook/revealjs/quarto_report/quarto_report.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Optional description for subsection.
334334
### Readme
335335

336336
```{python}
337-
#| label: 'Readme 4'
337+
#| label: 'Readme 3'
338338
#| fig-cap: ""
339339
340340

0 commit comments

Comments
 (0)