Skip to content

Commit c533afc

Browse files
adjusted yml files
1 parent d5f3b80 commit c533afc

4 files changed

Lines changed: 42 additions & 54 deletions

File tree

ci.DEV.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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
2017
test:
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'
3431
run:
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
@@ -46,15 +43,15 @@ run:
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

ci.PROD.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@ prepare:
33
steps:
44
- name: install uv standalone version
55
command: nix-env -iA nixpkgs.uv
6-
- name: create environment file
7-
command: |
8-
cat > ./env << 'EOF'
9-
export UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
10-
export UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
11-
export UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
12-
export UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
13-
EOF
146
- name: install frontend environment
157
command: cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync --no-dev; }
168
- name: install backend environment
179
command: cd backend && { [ ! -d ".venv" ] && uv venv; uv sync --no-dev; }
10+
env: |
11+
UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
12+
UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
13+
UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
14+
UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
1815
test:
1916
steps: []
2017
run:

ci.QA.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,25 @@ 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
--no-dev; }
1910
- name: install backend environment
20-
command: . ./env && cd backend && { [ ! -d ".venv" ] && uv venv; uv sync
11+
command: cd backend && { [ ! -d ".venv" ] && uv venv; uv sync
2112
--no-dev; }
13+
env: |
14+
PATH=$HOME/app:$PATH
15+
UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
16+
UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
17+
UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
18+
UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
2219
test:
2320
steps: []
2421
run:
2522
frontend:
2623
steps:
2724
- name: start frontend application
28-
command: ". ./env && cd frontend && uv run streamlit run main.py
25+
command: "cd frontend && uv run streamlit run main.py
2926
--server.headless true --server.address 0.0.0.0 --server.port 3000
3027
--browser.gatherUsageStats false --logger.level info "
3128
plan: 20
@@ -37,15 +34,15 @@ run:
3734
backend:
3835
steps:
3936
- name: start backend application
40-
command: . ./env && cd backend && uv run uvicorn app:app --port 3000 --host
37+
command: cd backend && uv run uvicorn app:app --port 3000 --host
4138
0.0.0.0 --workers 2
4239
plan: 20
4340
replicas: 1
4441
isPublic: false
4542
api-docs:
4643
steps:
4744
- name: deploy docs
48-
command: . ./env && cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
45+
command: cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
4946
--port 3000 --workers 2
5047
plan: 20
5148
replicas: 1

ci.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,25 @@ 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
--no-dev; }
1910
- name: install backend environment
20-
command: . ./env && cd backend && { [ ! -d ".venv" ] && uv venv; uv sync
11+
command: cd backend && { [ ! -d ".venv" ] && uv venv; uv sync
2112
--no-dev; }
13+
env: |
14+
PATH=$HOME/app:$PATH
15+
UV_PYTHON_INSTALL_DIR=$PWD/.codesphere-internal/.uv-python-install
16+
UV_PYTHON_BIN_DIR=$PWD/.codesphere-internal/.uv-python-bin
17+
UV_CACHE_DIR=$PWD/.codesphere-internal/.uv
18+
UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
2219
test:
2320
steps: []
2421
run:
2522
frontend:
2623
steps:
2724
- name: start frontend application
28-
command: ". ./env && cd frontend && uv run streamlit run main.py
25+
command: "cd frontend && uv run streamlit run main.py
2926
--server.headless true --server.address 0.0.0.0 --server.port 3000
3027
--browser.gatherUsageStats false --logger.level info "
3128
plan: 8
@@ -37,15 +34,15 @@ run:
3734
backend:
3835
steps:
3936
- name: start backend application
40-
command: . ./env && cd backend && uv run uvicorn app:app --port 3000 --host
37+
command: cd backend && uv run uvicorn app:app --port 3000 --host
4138
0.0.0.0 --workers 2
4239
plan: 8
4340
replicas: 1
4441
isPublic: false
4542
api-docs:
4643
steps:
4744
- name: deploy docs
48-
command: . ./env && cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
45+
command: cd backend && uv run uvicorn doc:app_docs --host 0.0.0.0
4946
--port 3000 --workers 2
5047
plan: 8
5148
replicas: 1

0 commit comments

Comments
 (0)