@@ -4,38 +4,35 @@ prepare:
44 - name : install uv standalone version
55 command : curl -LsSf https://astral.sh/uv/install.sh | env
66 UV_INSTALL_DIR="$HOME/app" sh && chmod +x $HOME/app/uv
7- - name : create environment file
8- command : |
9- cat > ./env << 'EOF'
10- export PATH="$HOME/app:$PATH"
11- export UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
12- export UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
13- export UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
14- export UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
15- EOF
167 - name : install frontend environment
17- command : . ./env && cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync; }
8+ command : cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync; }
189 - name : install backend environment
19- command : . ./env && cd backend && { [ ! -d ".venv" ] && uv venv; uv sync; }
10+ command : cd backend && { [ ! -d ".venv" ] && uv venv; uv sync; }
11+ env : |
12+ PATH=$HOME/app:$PATH
13+ UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
14+ UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
15+ UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
16+ UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
2017test :
2118 steps :
2219 - name : test frontend
23- command : . ./env && cd frontend && uv run pytest
20+ command : cd frontend && uv run pytest
2421 - name : test backend
25- command : " . ./env && cd backend && uv run pytest "
22+ command : " cd backend && uv run pytest"
2623 - name : security check frontend
27- command : ' . ./env && cd frontend && uv run bandit -r . -c pyproject.toml
24+ command : ' cd frontend && uv run bandit -r . -c pyproject.toml
2825 --format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]:
2926 {msg}" -o bandit-results.txt'
3027 - name : security check backend
31- command : ' . ./env && cd backend && uv run bandit -r . -c pyproject.toml
28+ command : ' cd backend && uv run bandit -r . -c pyproject.toml
3229 --format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]:
3330 {msg}" -o bandit-results.txt'
3431run :
3532 frontend :
3633 steps :
3734 - name : start frontend application
38- command : . ./env && cd frontend && uv run streamlit run --server.address 0.0.0.0
35+ command : cd frontend && uv run streamlit run --server.address 0.0.0.0
3936 --server.port 3000 main.py
4037 plan : 20
4138 replicas : 1
4643 backend :
4744 steps :
4845 - name : start backend application
49- command : . ./env && cd backend && uv run uvicorn app:app --reload --port 3000
46+ command : cd backend && uv run uvicorn app:app --reload --port 3000
5047 --host 0.0.0.0
5148 plan : 20
5249 replicas : 1
5350 isPublic : false
5451 api-docs :
5552 steps :
5653 - name : deploy docs
57- command : . ./env && cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
54+ command : cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
5855 --port 3000
5956 plan : 20
6057 replicas : 1
0 commit comments