Skip to content

Commit 5fbf26b

Browse files
committed
Fix formatting and limit workflow to pull_request only
1 parent a143184 commit 5fbf26b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/deploy-examples.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Deploy Python Examples
22

33
on:
4-
push:
5-
branches: [ "main", "development" ]
6-
paths:
7-
- 'src/aws_durable_execution_sdk_python_testing/**'
8-
- 'examples/**'
9-
- '.github/workflows/deploy-examples.yml'
104
pull_request:
115
branches: [ "main", "development"]
126
paths:

examples/deploy.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import json
44
import os
5-
import subprocess
65
import sys
7-
import tempfile
86
import zipfile
97
from pathlib import Path
108

@@ -31,7 +29,8 @@ def create_deployment_package(example_name: str) -> Path:
3129
# Use the build directory that already has SDK + examples
3230
build_dir = Path(__file__).parent / "build"
3331
if not build_dir.exists():
34-
raise ValueError("Build directory not found. Run 'hatch run examples:build' first.")
32+
msg = "Build directory not found. Run 'hatch run examples:build' first."
33+
raise ValueError(msg)
3534

3635
# Create zip from build directory
3736
zip_path = Path(__file__).parent / f"{example_name}.zip"

0 commit comments

Comments
 (0)