Skip to content

Commit 1fa4b2b

Browse files
committed
fix: integration-tests.yml fix for testing package
1 parent a6ae0f3 commit 1fa4b2b

2 files changed

Lines changed: 38 additions & 14 deletions

File tree

.github/scripts/ci-checks.sh

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,60 @@
33
set -e
44

55
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)"
629

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) ---
739
PACKAGES=(
840
"packages/aws-durable-execution-sdk-python"
941
"packages/aws-durable-execution-sdk-python-otel"
42+
"packages/examples"
1043
)
1144

1245
for package_dir in "${PACKAGES[@]}"; do
1346
full_path="$REPO_ROOT/$package_dir"
1447
if [ -d "$full_path" ]; then
1548
echo "=========================================="
16-
echo "Running checks for $package_dir"
49+
echo "Running formatting/linting for $package_dir"
1750
echo "=========================================="
1851
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
2852
hatch fmt
2953
echo "SUCCESS: linting/fmt ($package_dir)"
3054
else
31-
echo "WARNING: $package_dir does not exist, skipping"
55+
echo "WARNING: $package_dir does not exist, skipping fmt"
3256
fi
3357
done
3458

35-
# commit message validation (run once from repo root)
3659
cd "$REPO_ROOT"
60+
61+
# --- Commit message validation ---
3762
hatch run python .github/scripts/lintcommit.py

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
working-directory: language-sdk
4141
run: |
4242
echo "Running SDK tests..."
43-
hatch run -- test:pip install -e ../testing-sdk
44-
hatch fmt --check
43+
hatch run -- test:pip install -e ../packages/testing-sdk
4544
hatch run types:check
4645
hatch run test:cov
4746

0 commit comments

Comments
 (0)