-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,5 @@ jobs: | |
} | ||
- name: Run Package-Build Tests | ||
shell: bash | ||
run: "make test-build-packages" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from __future__ import annotations | ||
|
||
import subprocess | ||
from pathlib import Path | ||
|
||
if __name__ == "__main__": | ||
# Check that the `mf` command is installed. | ||
print(f"Running from {Path.cwd().as_posix()}") | ||
print("Checking path to python") | ||
subprocess.check_call("which python", shell=True) | ||
subprocess.check_call("mf", shell=True) | ||
# Run the tutorial using `--yes` to create the sample project without user interaction. | ||
subprocess.check_call("mf tutorial --yes", shell=True) | ||
tutorial_directory = Path.cwd().joinpath("mf_tutorial_project").as_posix() | ||
|
||
# Run the first few tutorial steps. | ||
subprocess.check_call("dbt seed", cwd=tutorial_directory, shell=True) | ||
subprocess.check_call("dbt build", cwd=tutorial_directory, shell=True) | ||
subprocess.check_call( | ||
"mf query --metrics transactions --group-by metric_time --order metric_time", cwd=tutorial_directory, shell=True | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters