Merge pull request #63 from aimingmed/feature/backend-frontend-structure

update
This commit is contained in:
Hong Kai LEE 2025-04-17 14:35:38 +08:00 committed by GitHub
commit 4224ec2218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,7 @@ on:
required: true
type: string
jobs:
build-single-image:
# This job executes the build steps for the specific image configuration passed via inputs
@ -90,7 +91,6 @@ jobs:
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }} \
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} \
-t ${{ steps.tags.outputs.image_repo_path }}:latest \
${{ inputs.args }} \
${{ inputs.build_context }}
- name: Push Final Image Tags

View File

@ -13,6 +13,8 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV ENVIRONMENT=dev
ENV TESTING=1
ENV DEEPSEEK_API_KEY=sk-XXXXXXXXXX
ENV TAVILY_API_KEY=tvly-dev-wXXXXXX
# install python dependencies
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
@ -21,7 +23,8 @@ RUN pipenv install --deploy --dev
# add app
COPY . /usr/src/app
RUN pipenv run pytest tests --disable-warnings
RUN export DEEPSEEK_API_KEY=sk-XXXXXXXXXX; export TAVILY_API_KEY=tvly-dev-wXXXXXX;\
pipenv run pytest tests --disable-warnings
RUN pipenv run flake8 .
RUN pipenv run black --exclude=migrations . --check
RUN pipenv run isort . --check-only