Skip to content

Commit 95eb81d

Browse files
Build and upload lambda artefact.
1 parent 188f84b commit 95eb81d

File tree

2 files changed

+17
-28
lines changed

2 files changed

+17
-28
lines changed

.github/workflows/stage-3-build.yaml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,24 @@ on:
3333
type: string
3434

3535
jobs:
36-
artefact-1:
37-
name: "Artefact 1"
36+
lambda-artefact:
37+
name: "Lambda Artefact"
3838
runs-on: ubuntu-latest
3939
timeout-minutes: 3
4040
steps:
41+
- name: "Set up Python"
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: '3.13'
4145
- name: "Checkout code"
4246
uses: actions/checkout@v4
43-
- name: "Build artefact 1"
47+
- name: "Build lambda artefact"
4448
run: |
45-
echo "Building artefact 1 ..."
46-
- name: "Check artefact 1"
47-
run: |
48-
echo "Checking artefact 1 ..."
49-
- name: "Upload artefact 1"
50-
run: |
51-
echo "Uploading artefact 1 ..."
52-
# TODO: Use either action/cache or action/upload-artifact
53-
artefact-2:
54-
name: "Artefact 2"
55-
runs-on: ubuntu-latest
56-
timeout-minutes: 3
57-
steps:
58-
- name: "Checkout code"
59-
uses: actions/checkout@v4
60-
- name: "Build artefact 2"
61-
run: |
62-
echo "Building artefact 2 ..."
63-
- name: "Check artefact 2"
64-
run: |
65-
echo "Checking artefact 2 ..."
66-
- name: "Upload artefact 2"
67-
run: |
68-
echo "Uploading artefact 2 ..."
69-
# TODO: Use either action/cache or action/upload-artifact
49+
make dependencies install-python
50+
poetry self add poetry-plugin-lambda-build poetry-plugin-export
51+
make build-lambda
52+
- name: "Upload lambda artefact"
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: lambda
56+
path: dist/lambda.zip

scripts/tests/integration.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ cd "$(git rev-parse --show-toplevel)"
1717
# tests from here. If you want to run other test suites, see the predefined
1818
# tasks in scripts/test.mk.
1919

20+
make dependencies install-python
21+
poetry self add poetry-plugin-lambda-build poetry-plugin-export
2022
make dependencies install-python build-lambda
2123
poetry run pytest tests/integration/ --durations=10 --cov-report term-missing --cov src

0 commit comments

Comments
 (0)