Skip to content

Commit f339d3a

Browse files
committed
Add an example layer and build it in the CI (as a test)
1 parent d8044d5 commit f339d3a

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/pythonapp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ jobs:
2626
# run: |
2727
# pip install pytest
2828
# pytest
29+
- name: Build example layer
30+
run: |
31+
cd tests/numpy/
32+
../../layer-tool.py --build awesome-numpy
33+
du -h awesome-numpy.zip

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Lambda Layer Tool
22

3+
![Build status](https://github.com/jacksgt/lambda-layer-tool/workflows/Python%20application/badge.svg?branch=master)
4+
35
A tool to programmatically build and publish Layers for AWS Lambda.
46

57
Instead of manually copy & pasting build instructions for a Lambda Layer into your shell or trying to script your way around, use this tool to automate the process.

tests/numpy/layers.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
version: '0.3'
3+
layers:
4+
awesome-numpy:
5+
description: 'Minimal numpy 1.18 for python3.7'
6+
runtimes: 'python3.7'
7+
requirements:
8+
- 'numpy==1.18.2'
9+
excludes:
10+
- '*/numpy/tests/*'
11+
- '*.dist-info/*'
12+
- '*.egg-info/*'
13+
- '*/__pycache__/*'
14+
- '*.pyc'

0 commit comments

Comments
 (0)