mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
Merge pull request #27 from aimingmed/feature/backend-frontend-structure
test
This commit is contained in:
commit
1a3165945b
4
.github/workflows/develop.yml
vendored
4
.github/workflows/develop.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: Build Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
|
||||
test:
|
||||
name: Test Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
needs: build
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@ -23,7 +23,7 @@ RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu
|
||||
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv
|
||||
RUN pip install --no-cache-dir --find-links=/usr/src/app/wheels pipenv
|
||||
COPY ./Pipfile .
|
||||
RUN pipenv lock --pre && pipenv install --deploy
|
||||
RUN pipenv install --deploy --dev
|
||||
|
||||
# add app
|
||||
COPY . /usr/src/app
|
||||
@ -68,7 +68,7 @@ COPY --from=builder /usr/src/app/wheels /wheels
|
||||
COPY --from=builder /usr/src/app/Pipfile .
|
||||
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
RUN pip install --no-cache /wheels/*
|
||||
RUN pipenv lock --pre && pipenv install --deploy
|
||||
RUN pipenv install --deploy --dev
|
||||
RUN pipenv run pip install "uvicorn[standard]==0.26.0"
|
||||
|
||||
# add app
|
||||
|
||||
@ -38,6 +38,7 @@
|
||||
"vitest": "^3.1.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-musl": "^3.28.0"
|
||||
"@rollup/rollup-linux-x64-musl": "^3.28.0",
|
||||
"@rollup/rollup-linux-x64-gnu": "4.9.5"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user