|
3 | 3 | set -e |
4 | 4 |
|
5 | 5 | REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" |
| 6 | +cd "$REPO_ROOT" |
| 7 | + |
| 8 | +# --- Core SDK checks --- |
| 9 | +echo "==========================================" |
| 10 | +echo "Running checks for aws-durable-execution-sdk-python" |
| 11 | +echo "==========================================" |
| 12 | + |
| 13 | +hatch run dev-core:cov |
| 14 | +echo "SUCCESS: tests + coverage (core)" |
| 15 | + |
| 16 | +hatch run dev-core:typecheck |
| 17 | +echo "SUCCESS: typings (core)" |
| 18 | + |
| 19 | +# --- OTel SDK checks --- |
| 20 | +echo "==========================================" |
| 21 | +echo "Running checks for aws-durable-execution-sdk-python-otel" |
| 22 | +echo "==========================================" |
| 23 | + |
| 24 | +hatch run dev-otel:cov |
| 25 | +echo "SUCCESS: tests + coverage (otel)" |
| 26 | + |
| 27 | +hatch run dev-otel:typecheck |
| 28 | +echo "SUCCESS: typings (otel)" |
6 | 29 |
|
| 30 | +# --- Examples checks --- |
| 31 | +echo "==========================================" |
| 32 | +echo "Running checks for examples" |
| 33 | +echo "==========================================" |
| 34 | + |
| 35 | +hatch run dev-examples:test |
| 36 | +echo "SUCCESS: tests (examples)" |
| 37 | + |
| 38 | +# --- Formatting / linting (per package) --- |
7 | 39 | PACKAGES=( |
8 | 40 | "packages/aws-durable-execution-sdk-python" |
9 | 41 | "packages/aws-durable-execution-sdk-python-otel" |
| 42 | + "packages/examples" |
10 | 43 | ) |
11 | 44 |
|
12 | 45 | for package_dir in "${PACKAGES[@]}"; do |
13 | 46 | full_path="$REPO_ROOT/$package_dir" |
14 | 47 | if [ -d "$full_path" ]; then |
15 | 48 | echo "==========================================" |
16 | | - echo "Running checks for $package_dir" |
| 49 | + echo "Running formatting/linting for $package_dir" |
17 | 50 | echo "==========================================" |
18 | 51 | cd "$full_path" |
19 | | - |
20 | | - hatch run test:cov |
21 | | - echo "SUCCESS: tests + coverage ($package_dir)" |
22 | | - |
23 | | - # type checks |
24 | | - hatch run types:check |
25 | | - echo "SUCCESS: typings ($package_dir)" |
26 | | - |
27 | | - # static analysis |
28 | 52 | hatch fmt |
29 | 53 | echo "SUCCESS: linting/fmt ($package_dir)" |
30 | 54 | else |
31 | | - echo "WARNING: $package_dir does not exist, skipping" |
| 55 | + echo "WARNING: $package_dir does not exist, skipping fmt" |
32 | 56 | fi |
33 | 57 | done |
34 | 58 |
|
35 | | -# commit message validation (run once from repo root) |
36 | 59 | cd "$REPO_ROOT" |
| 60 | + |
| 61 | +# --- Commit message validation --- |
37 | 62 | hatch run python .github/scripts/lintcommit.py |
0 commit comments