Skip to content

Commit db7662f

Browse files
committed
remove useless dependencies in deployment tests, turn on pull request trigger to check the action works
1 parent b4de035 commit db7662f

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/deploy.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Test deployment
22

33
on:
4+
pull_request:
45
merge_group:
6+
branches: [ main ]
57

68
jobs:
79
build_package_and_deploy:
@@ -54,11 +56,8 @@ jobs:
5456
cd integration_tests/cdk
5557
npx cdk synth --debug --all --require-approval never
5658
57-
# deploy the stack and grab URLs for testing
59+
# deploy the stack
5860
npx cdk deploy --ci --all --require-approval never
59-
echo "ingestor_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'stacingestor')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
60-
echo "stac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'pgstacapi')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
61-
echo "titiler_pgstac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'titilerpgstac')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
6261
deactivate
6362
cd -
6463
@@ -67,11 +66,11 @@ jobs:
6766
run: |
6867
cd integration_tests/cdk
6968
# run this only if we find a 'cdk.out' directory, which means there might be things to tear down
69+
# see https://github.com/aws/aws-cdk/issues/24946
70+
rm -f cdk.out/synth.lock
7071
if [ -d "cdk.out" ]; then
7172
cd -
7273
source .deployment_venv/bin/activate
7374
cd integration_tests/cdk
74-
# see https://github.com/aws/aws-cdk/issues/24946
75-
rm -f cdk.out/synth.lock
7675
npx cdk destroy --ci --all --force
7776
fi
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
aws-cdk-lib>=2.99.1
2-
aws_cdk.aws_cognito_identitypool_alpha>=2.99.0a0
3-
aws-cdk.aws-apigatewayv2-alpha>=2.99.0a0
42
constructs>=10.0.0,<11.0.0
53
pydantic==2.0.2
64
pydantic-settings==2.0.1
7-
black==22.3.0
8-
boto3==1.24.15
9-
boto3-stubs[cognito-idp,cognito-identity]
10-
flake8==4.0.1
11-
click==8.1.3
12-
requests==2.28.0
135
python-dotenv==1.0.0
146
pyyaml==6.0
157
types-PyYAML==6.0.12.10

0 commit comments

Comments
 (0)