Skip to content

Commit c151615

Browse files
committed
debug ci
1 parent 7b4d337 commit c151615

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# set API TOKEN so that the cli is authorized to use the public api
22
export CS_TOKEN=
3-
export TEAM_ID=
3+
export TEAM_ID=$(cs list workspaces | grep $WORKSPACE_ID | awk '{print $2}')

ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ prepare:
1919
--env-var UV_CACHE_DIR=$PWD/.codesphere-internal/.uv --env-var
2020
UV_PYTHON_CACHE_DIR=$PWD/.codesphere-internal/.uv-python
2121
- name: install frontend environment
22-
command: cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync; }
22+
command: . ./env && cd frontend && { [ ! -d ".venv" ] && uv venv; uv sync; }
2323
- name: install backend environment
24-
command: cd backend && { [ ! -d ".venv" ] && uv venv; uv sync; }
24+
command: . ./env && cd backend && { [ ! -d ".venv" ] && uv venv; uv sync; }
2525
test:
2626
steps:
2727
- name: test frontend
28-
command: cd frontend && uv run pytest
28+
command: . ./env && cd frontend && uv run pytest
2929
- name: test backend
30-
command: "cd backend && uv run pytest "
30+
command: ". ./env && cd backend && uv run pytest "
3131
- name: security check frontend
32-
command: 'cd frontend && uv run bandit -r . -c pyproject.toml --format=custom
33-
--msg-template "{abspath}:{line}: {test_id}[{severity}]: {msg}" -o
34-
bandit-results.txt'
32+
command: '. ./env && cd frontend && uv run bandit -r . -c pyproject.toml
33+
--format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]:
34+
{msg}" -o bandit-results.txt'
3535
- name: security check backend
36-
command: 'cd backend && uv run bandit -r . -c pyproject.toml --format=custom
37-
--msg-template "{abspath}:{line}: {test_id}[{severity}]: {msg}" -o
38-
bandit-results.txt'
36+
command: '. ./env && cd backend && uv run bandit -r . -c pyproject.toml
37+
--format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]:
38+
{msg}" -o bandit-results.txt'
3939
run:
4040
frontend:
4141
steps:

0 commit comments

Comments
 (0)