Skip to content

Commit 2b7b18d

Browse files
committed
Minor fixes
1 parent bb1881d commit 2b7b18d

File tree

6 files changed

+108
-4
lines changed

6 files changed

+108
-4
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- name: Run unittest with batchprocessorfilter-coverage
5050
working-directory: batch_processor_filter
5151
id: batchprocessorfilter
52+
env:
53+
PYTHONPATH: ${{ github.workspace }}/batch_processor_filter/src:${{ github.workspace }}/batch_processor_filter/tests
5254
continue-on-error: true
5355
run: |
5456
poetry install

batch_processor_filter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ COPY src .
2222
RUN chmod 644 $(find . -type f) && chmod 755 $(find . -type d)
2323
# Build as non-root user
2424
USER 1001:1001
25-
CMD ["batch_processor_filter.lambda_handler"]
25+
CMD ["lambda_handler.lambda_handler"]

batch_processor_filter/poetry.lock

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

batch_processor_filter/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ readme = "README.md"
77
packages = [{include = "src"}]
88

99
[tool.poetry.dependencies]
10-
python = "~3.11"
10+
python = "~3.11"
11+
coverage = "^7.9.1"
1112

1213
[build-system]
1314
requires = ["poetry-core ~= 1.5.0"]

batch_processor_filter/test/test_lambda_handler.py renamed to batch_processor_filter/tests/test_lambda_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from lambda_handler import lambda_handler
44

5+
56
class TestLambdaHandler(TestCase):
67
def test_lambda_handler(self):
78
result = lambda_handler({}, {})

0 commit comments

Comments
 (0)