File tree Expand file tree Collapse file tree 10 files changed +26
-44
lines changed
Expand file tree Collapse file tree 10 files changed +26
-44
lines changed Original file line number Diff line number Diff line change 3434 id : modified-apps-step
3535 uses : ./.github/actions/modified_apps
3636 - name : Set up Snowflake CLI
37- uses : Snowflake-Labs/snowflake-cli-action@v1
37+ uses : Snowflake-Labs/snowflake-cli-action@v1.1
3838 with :
3939 cli-version : " latest"
4040 default-config-file-path : " config.toml"
4949 IFS=',' read -ra modified_apps_array <<< "$modified_apps"
5050 for app in "${modified_apps_array[@]}"; do
5151 cd $app
52- if [ -f ci.json ]; then
53- commands=$(jq -r '.commands[]' ci.json)
54- for command in "${commands[@]}"; do
55- eval "$command"
56- done
52+ if [ -f ci.sh ]; then
53+ sh ci.sh
5754 else
5855 snow app run
5956 snow app teardown
Original file line number Diff line number Diff line change 4343 const { MODIFIED_APPS } = process.env;
4444 const fs = require('fs');
4545 const path = require('path');
46- var has_tests = false;
46+ var has_python_tests = false;
4747
4848 function getPytestPaths(dir, callback)
4949 {
5959 extension = path.extname(file.name);
6060
6161 if (extension == '.py')
62- {
63- if (file.name.startsWith('test'))
64- {
65- has_tests = true
66- }
67-
68- callback(dir);
62+ {
63+ callback(dir, file.name);
6964 }
7065 }
7166 }
7873 for (const rootPath of paths)
7974 {
8075 let subFoldersWithPythonFiles = 0;
81- getPytestPaths(rootPath, x =>
76+ getPytestPaths(rootPath, (folder, fileName) =>
8277 {
83- pytestPaths.add(x);
78+ pytestPaths.add(folder);
79+
80+ if (fileName.startsWith('test'))
81+ {
82+ has_python_tests = true
83+ }
84+
8485 subFoldersWithPythonFiles++
8586 })
8687
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ snow sql -f ' prepare/references.sql'
2+ snow app run
3+ snow app teardown
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ sh prepare_data.sh
2+ snow app run
3+ snow app teardown
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ snow sql -f ' prepare/provider.sql'
2+ snow app run
3+ snow app teardown
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ sh setup.sh
2+ sh deploy.sh
3+ sh cleanup.sh
You can’t perform that action at this time.
0 commit comments