File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,14 @@ TEST_DIR="$TMP_DIR/$EXAMPLE_NAME"
2424
2525echo " Running migration test for '$EXAMPLE_NAME ' in '$TEST_DIR ' for example project '$EXAMPLE_DIR ' using options '$SQLMESH_OPTS '"
2626
27+ # Copy the example project from the *current* checkout so it's stable across old/new SQLMesh versions
28+ cp -r " $EXAMPLE_DIR " " $TEST_DIR "
29+
2730git checkout $LAST_TAG
2831
2932# Install dependencies from the previous release.
3033make install-dev
3134
32- cp -r $EXAMPLE_DIR $TEST_DIR
33-
3435# this is only needed temporarily until the released tag for $LAST_TAG includes this config
3536if [ " $EXAMPLE_NAME " == " sushi_dbt" ]; then
3637 echo ' migration_test_config = sqlmesh_config(Path(__file__).parent, dbt_target_name="duckdb")' >> $TEST_DIR /config.py
@@ -53,4 +54,4 @@ make install-dev
5354pushd $TEST_DIR
5455sqlmesh $SQLMESH_OPTS migrate
5556sqlmesh $SQLMESH_OPTS diff prod
56- popd
57+ popd
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments