mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 16:37:29 +08:00
Merge pull request #63 from aimingmed/feature/backend-frontend-structure
update
This commit is contained in:
commit
4224ec2218
2
.github/workflows/template_build.yml
vendored
2
.github/workflows/template_build.yml
vendored
@ -26,6 +26,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-single-image:
|
build-single-image:
|
||||||
# This job executes the build steps for the specific image configuration passed via inputs
|
# 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_build_id }} \
|
||||||
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} \
|
-t ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} \
|
||||||
-t ${{ steps.tags.outputs.image_repo_path }}:latest \
|
-t ${{ steps.tags.outputs.image_repo_path }}:latest \
|
||||||
${{ inputs.args }} \
|
|
||||||
${{ inputs.build_context }}
|
${{ inputs.build_context }}
|
||||||
|
|
||||||
- name: Push Final Image Tags
|
- name: Push Final Image Tags
|
||||||
|
|||||||
@ -13,6 +13,8 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV ENVIRONMENT=dev
|
ENV ENVIRONMENT=dev
|
||||||
ENV TESTING=1
|
ENV TESTING=1
|
||||||
|
ENV DEEPSEEK_API_KEY=sk-XXXXXXXXXX
|
||||||
|
ENV TAVILY_API_KEY=tvly-dev-wXXXXXX
|
||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
|
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
|
# add app
|
||||||
COPY . /usr/src/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 flake8 .
|
||||||
RUN pipenv run black --exclude=migrations . --check
|
RUN pipenv run black --exclude=migrations . --check
|
||||||
RUN pipenv run isort . --check-only
|
RUN pipenv run isort . --check-only
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user