Skip to content

Commit 9dd6bda

Browse files
committed
fix(vscode): make work better with venvs (#4482)
1 parent 3ab48e5 commit 9dd6bda

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.circleci/continue_config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,43 @@ commands:
3737
- run: circleci-agent step halt
3838

3939
jobs:
40+
vscode_e2e_test:
41+
docker:
42+
- image: cimg/node:20.19.1-browsers
43+
resource_class: medium
44+
steps:
45+
- checkout
46+
- run:
47+
name: Install python
48+
command: |
49+
apt update
50+
apt install python3.10-venv
51+
apt install python3-pip
52+
python3.10 -m pip install --upgrade pip
53+
- run:
54+
name: Create Python venv
55+
command: |
56+
python3 -m venv venv
57+
. ./venv/bin/activate
58+
- run:
59+
name: Install Python dependencies
60+
command: |
61+
python -m pip install --upgrade pip
62+
make install-dev
63+
- run:
64+
name: Install Dependencies
65+
command: |
66+
pnpm install
67+
- run:
68+
name: Install VSCode
69+
command: |
70+
cd vscode/extension
71+
pnpm run fetch-vscode
72+
- run:
73+
name: Run VSCode extension tests
74+
command: |
75+
cd vscode/extension
76+
pnpm run test:e2e:ci
4077
vscode_test:
4178
docker:
4279
- image: cimg/node:20.19.1-browsers
@@ -347,4 +384,5 @@ workflows:
347384
- ui_style
348385
- ui_test
349386
- vscode_test
387+
- vscode_e2e_test
350388
- migration_test

vscode/extension/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"test:e2e": "playwright test",
8989
"test:e2e:ui": "playwright test --ui",
9090
"test:e2e:headed": "playwright test --headed",
91+
"test:e2e:ci": "xvfb-run --server-args=\"-screen 0 1280x720x24\" npx playwright test --reporter=line,junit",
9192
"fetch-vscode": "tsx scripts/fetch-vscode.ts",
9293
"compile": "pnpm run check-types && node esbuild.js",
9394
"check-types": "tsc --noEmit",

0 commit comments

Comments
 (0)