Skip to content

Commit d107f9d

Browse files
committed
github actions manual cdk install
1 parent d70301e commit d107f9d

3 files changed

Lines changed: 27 additions & 22 deletions

File tree

.github/workflows/aws.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,44 +28,49 @@ jobs:
2828
- name: npm build
2929
working-directory: ./frontend
3030
run: npm run build
31-
# - name: Set up Python 3.13
32-
# uses: actions/setup-python@v5
33-
# with:
34-
# python-version: 3.13
35-
# cache: pip
3631
- name: Install uv
3732
uses: astral-sh/setup-uv@v5
3833
- name: "Set up Python"
3934
uses: actions/setup-python@v5
4035
with:
4136
python-version-file: "pyproject.toml"
37+
- name: ensure pip
38+
run: python -m ensurepip --upgrade
39+
- name: which pip
40+
run: which pip
4241
- name: Install the project
4342
run: uv sync --all-extras --dev --python-preference only-system
4443
- name: uv to requirements.txt
4544
run: uv export --project pyproject.toml --no-emit-project --no-hashes > ./infrastructure/requirements.txt
4645
- name: check requirements
4746
run: cat infrastructure/requirements.txt
47+
- name: install requirements
48+
run: pip install -U -r infrastructure/requirements.txt
49+
- name: check pip freeze
50+
run: pip freeze
51+
- name: install cdk
52+
run: npm install -g aws-cdk
53+
- name: cdk synth
54+
run: cdk synth
55+
working-directory: ./infrastructure
56+
env:
57+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
58+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
PYTHON_WA_API_KEY: ${{ secrets.PYTHON_WA_API_KEY }}
4861
- name: cdk diff
49-
uses: youyo/aws-cdk-github-actions@v2
50-
with:
51-
cdk_subcommand: 'diff'
52-
cdk_stack: '--all'
53-
working_dir: './infrastructure'
54-
actions_comment: true
62+
run: cdk diff --all
63+
working-directory: ./infrastructure
5564
env:
5665
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
5766
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5867
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5968
PYTHON_WA_API_KEY: ${{ secrets.PYTHON_WA_API_KEY }}
60-
- name: deploy
61-
uses: youyo/aws-cdk-github-actions@v2
62-
with:
63-
cdk_subcommand: 'deploy'
64-
cdk_stack: '--all'
65-
cdk_args: '--require-approval never'
66-
working_dir: './infrastructure'
67-
actions_comment: false
69+
- name: cdk deploy
70+
run: cdk deploy --all --require-approval never
71+
working-directory: ./infrastructure
6872
env:
6973
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7074
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7176
PYTHON_WA_API_KEY: ${{ secrets.PYTHON_WA_API_KEY }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pythonwa"
3-
version = "3.1.5"
3+
version = "3.1.9"
44
description = "PythonWA website"
55
readme = "README.md"
66
requires-python = ">=3.13,<3.14"

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)