-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathci-checks.sh
More file actions
executable file
·62 lines (48 loc) · 1.64 KB
/
Copy pathci-checks.sh
File metadata and controls
executable file
·62 lines (48 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
set -e
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$REPO_ROOT"
# --- Core SDK checks ---
echo "=========================================="
echo "Running checks for aws-durable-execution-sdk-python"
echo "=========================================="
hatch run dev-core:cov
echo "SUCCESS: tests + coverage (core)"
hatch run dev-core:typecheck
echo "SUCCESS: typings (core)"
# --- OTel SDK checks ---
echo "=========================================="
echo "Running checks for aws-durable-execution-sdk-python-otel"
echo "=========================================="
hatch run dev-otel:cov
echo "SUCCESS: tests + coverage (otel)"
hatch run dev-otel:typecheck
echo "SUCCESS: typings (otel)"
# --- Examples checks ---
echo "=========================================="
echo "Running checks for examples"
echo "=========================================="
hatch run dev-examples:test
echo "SUCCESS: tests (examples)"
# --- Formatting / linting (per package) ---
PACKAGES=(
"packages/aws-durable-execution-sdk-python"
"packages/aws-durable-execution-sdk-python-otel"
"packages/aws-durable-execution-sdk-python-examples"
)
for package_dir in "${PACKAGES[@]}"; do
full_path="$REPO_ROOT/$package_dir"
if [ -d "$full_path" ]; then
echo "=========================================="
echo "Running formatting/linting for $package_dir"
echo "=========================================="
cd "$full_path"
hatch fmt
echo "SUCCESS: linting/fmt ($package_dir)"
else
echo "WARNING: $package_dir does not exist, skipping fmt"
fi
done
cd "$REPO_ROOT"
# --- Commit message validation ---
hatch run python .github/scripts/lintcommit.py