mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-01 20:23:34 +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
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user