Skip to content

Commit

Permalink
remove tests dir on build
Browse files Browse the repository at this point in the history
  • Loading branch information
aidangannon committed Sep 14, 2023
1 parent 3c53040 commit 92e7c0f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- run: cd server && sam build && cd .aws-sam/build/FlatiniFunction && rm -fr clean-build.sh samconfig.toml template.yaml requirements.txt requirements-test.txt
- run: cd server && sam build && cd .aws-sam/build/FlatiniFunction && rm -fr clean-build.sh samconfig.toml template.yaml requirements.txt requirements-test.txt tests
- run: cd server && sam deploy --no-fail-on-empty-changeset --no-confirm-changeset --stack-name flatini-api-prod --s3-bucket flatini-api-prod-s3 --region eu-west-2 --capabilities CAPABILITY_IAM --parameter-overrides ${{ secrets.SAM_PARAMETER_OVERRIDES }}
1 change: 1 addition & 0 deletions server/clean_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sam build && cd .aws-sam/build/FlatiniFunction && rm -fr clean-build.sh samconfig.toml template.yaml requirements.txt requirements-test.txt tests
2 changes: 1 addition & 1 deletion server/clean_build_windows.cmd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sam build && cd .aws-sam/build/FlatiniFunction && rm -fr clean-build.sh samconfig.toml template.yaml requirements.txt requirements-test.txt
sam build && cd .aws-sam/build/FlatiniFunction && rm -fr clean-build.sh samconfig.toml template.yaml requirements.txt requirements-test.txt tests
25 changes: 25 additions & 0 deletions server/src/data/repositories.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import typing
from typing import Protocol

from server.src.domain.models import Group

T = typing.TypeVar("T")


class S3BlobRepoBase(Protocol[T]):

def create(self, data: T) -> None:
print(str(T))

def get_all(self) -> list[T]:
...

def get_by_id(self, _id: str) -> T:
...

def delete_by_id(self, _id: str) -> None:
...


class GroupRepo(S3BlobRepoBase[Group]):
...

0 comments on commit 92e7c0f

Please sign in to comment.