We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14daffc commit aacfb2bCopy full SHA for aacfb2b
test.sh
@@ -5,10 +5,17 @@ notebook_files=()
5
6
# Find Markdown files convert.
7
all_markdown_files=$(find tutorials -type f -name "*.md")
8
+
9
if [ $# -gt 0 ]; then
- files_to_process="$@"
10
+ if [[ "$1" == all ]]; then
11
+ files_to_process=$all_markdown_files
12
+ else
13
+ files_to_process="$@"
14
+ fi
15
16
else
- files_to_process=$all_markdown_files
17
+ # We only want to run tests for the notebooks we touched
18
+ files_to_process=$(git fetch origin main --depth=1; git diff origin/main --name-only tutorials | grep .md)
19
fi
20
21
# Identify Markdown files that are Jupytext and convert them all.
0 commit comments