Skip to content

Commit 9a6a080

Browse files
committed
✨ use git diff to detect changes (should not fail atm)
1 parent 2dd9c42 commit 9a6a080

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/cdci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ jobs:
104104
cd docs
105105
vuegen -dir example_data/Earth_microbiome_vuegen_demo_notebook -rt jupyter
106106
vuegen -c example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml -rt jupyter
107+
- name: check for changes in report files
108+
run: |
109+
# write streamlit report to test folder
110+
vuegen -dir docs/example_data/Basic_example_vuegen_demo_notebook -output_dir tests/report_examples/Basic_example_vuegen_demo_notebook
111+
# Check for changes
112+
if git diff tests/report_examples | grep .; then
113+
echo "Error: One or more protected files have been modified."
114+
exit 1
115+
fi
116+
107117
108118
publish:
109119
name: Publish package to PyPI

0 commit comments

Comments
 (0)