fix(ci): test backend in container environment
This commit is contained in:
@@ -13,11 +13,7 @@ jobs:
|
||||
image_name: gitea.waternetwork.cn/orgtjwater/tjwater-backend
|
||||
dockerfile: Dockerfile
|
||||
build_context: .
|
||||
test_command: |
|
||||
python -m compileall -q app
|
||||
python -c "import app.main"
|
||||
python scripts/check_openapi.py
|
||||
pytest -q tests
|
||||
test_target: test
|
||||
deploy_service: backend
|
||||
deploy_host: 192.168.1.114
|
||||
secrets:
|
||||
|
||||
Reference in New Issue
Block a user