Merge pull request 'fix(ci): deploy.yml 用 /tmp/ci-venv 替代 requirements.txt' (#17) from fix/deploy-workflow into main
This commit was merged in pull request #17.
This commit is contained in:
@@ -23,16 +23,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv .venv
|
python3 -m venv /tmp/ci-venv-deploy
|
||||||
.venv/bin/pip install --quiet -r requirements.txt
|
/tmp/ci-venv-deploy/bin/pip install --quiet flake8 fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
.venv/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501
|
/tmp/ci-venv-deploy/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501
|
||||||
|
|
||||||
- name: Unit & Integration Tests
|
- name: Unit & Integration Tests
|
||||||
run: |
|
run: |
|
||||||
.venv/bin/pytest tests/ -m "not e2e" -x -q
|
/tmp/ci-venv-deploy/bin/pytest tests/ -m "not e2e" -x -q
|
||||||
|
|
||||||
# ── Job 2: 部署 ─────────────────────────────────────
|
# ── Job 2: 部署 ─────────────────────────────────────
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user