-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathci-checks.sh
More file actions
executable file
·37 lines (29 loc) · 901 Bytes
/
Copy pathci-checks.sh
File metadata and controls
executable file
·37 lines (29 loc) · 901 Bytes
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
#!/bin/sh
set -e
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
PACKAGES=(
"packages/aws-durable-execution-sdk-python"
"packages/aws-durable-execution-sdk-python-otel"
)
for package_dir in "${PACKAGES[@]}"; do
full_path="$REPO_ROOT/$package_dir"
if [ -d "$full_path" ]; then
echo "=========================================="
echo "Running checks for $package_dir"
echo "=========================================="
cd "$full_path"
hatch run test:cov
echo "SUCCESS: tests + coverage ($package_dir)"
# type checks
hatch run types:check
echo "SUCCESS: typings ($package_dir)"
# static analysis
hatch fmt
echo "SUCCESS: linting/fmt ($package_dir)"
else
echo "WARNING: $package_dir does not exist, skipping"
fi
done
# commit message validation (run once from repo root)
cd "$REPO_ROOT"
hatch run python .github/scripts/lintcommit.py