Skip to content

Commit dd95ffb

Browse files
Use only group deployment for pyproject dependencies
1 parent 4327557 commit dd95ffb

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/actions/cdk-deploy/action.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,20 @@ runs:
4949
shell: bash
5050
working-directory: ${{ inputs.dir }}
5151
run: |
52-
uv sync
52+
uv sync --only-group deployment
5353
uv run npm install
54-
uv run pip install boto3 # for the generate_env_file.py script
5554
5655
- name: Get relevant environment configuration from aws secrets
5756
if: inputs.env_aws_secret_name != ''
5857
shell: bash
5958
env:
6059
AWS_DEFAULT_REGION: us-west-2
61-
run: python ${{ inputs.script_path }} --secret-id ${{ inputs.env_aws_secret_name }}
62-
63-
- name: Install node dependencies
64-
shell: bash
65-
working-directory: ${{ inputs.dir }}
66-
run: uv run npm install
60+
run: python ${{ inputs.script_path }} --secret-id ${{ inputs.env_aws_secret_name }}
6761

6862
- name: CDK Synth
6963
shell: bash
7064
working-directory: ${{ inputs.dir }}
71-
run: uv run npm run cdk -- synth
65+
run: uv run --only-group deployment npm run cdk -- synth
7266

7367
- name: Check Asset Sizes
7468
shell: bash

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ dependencies = [
4141
"httpx>=0.27.2",
4242
"pillow>=11.0.0",
4343
"isodate>=0.7.2",
44-
"psutil>=6.0.0",
45-
"aws-cdk-lib~=2.177.0",
44+
"psutil>=6.0.0"
4645
]
4746
dynamic = ["version"]
4847

@@ -76,6 +75,12 @@ dev = [
7675
"pytest-benchmark>=5.1.0",
7776
"seaborn>=0.13.2",
7877
]
78+
deployment = [
79+
"aws-cdk-lib~=2.177.0",
80+
"constructs>=10.4.2",
81+
"pydantic-settings~=2.0",
82+
"python-dotenv>=1.0.1",
83+
]
7984

8085
[project.urls]
8186
Homepage = 'https://developmentseed.org/titiler-cmr/'

0 commit comments

Comments
 (0)