Skip to content

Commit

Permalink
fix: include all tests in pytest.ini for codebuild project "aws-deplo…
Browse files Browse the repository at this point in the history
…yment-framework-base-templates" (#621)

* fix: include all tests as part of pytest.ini

* Apply suggestions from code review

* Review fixes

* Install shared requirements too

---------

Co-authored-by: Andreas Falkenberg
Co-authored-by: Simon Kok
  • Loading branch information
AndyEfaa committed Jul 24, 2023
1 parent cf40599 commit c2b82a7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest-env~=0.8.2
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
boto3==1.28.8
botocore==1.31.8
docopt~=0.6.2
schema==0.7.5
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[pytest]
testpaths = adf-build/tests adf-bootstrap/deployment/lambda_codebase/tests
env =
ACCOUNT_ID="123456789012"
testpaths = adf-build/tests adf-bootstrap/deployment/lambda_codebase/tests adf-build/shared/python/tests/
norecursedirs = adf-bootstrap/deployment/lambda_codebase/initial_commit adf-bootstrap/deployment/lambda_codebase/determine_default_branch adf-build/shared
10 changes: 9 additions & 1 deletion src/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,15 @@ Resources:
python: 3.11
pre_build:
commands:
- pip install -r adf-build/requirements.txt -r adf-build/requirements-dev.txt -r adf-build/shared/helpers/requirements.txt --quiet
- >-
pip install
-r adf-build/requirements.txt
-r adf-build/requirements-dev.txt
-r adf-build/shared/requirements.txt
-r adf-build/shared/requirements-dev.txt
-r adf-build/shared/helpers/requirements.txt
-r adf-build/shared/helpers/requirements-dev.txt
--quiet
- pytest -vvv
build:
commands:
Expand Down

0 comments on commit c2b82a7

Please sign in to comment.