Skip to content

Commit 7c6cf8a

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

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.circleci/continue_config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,40 @@ 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 install python3.10-venv
50+
- run:
51+
name: Create Python venv
52+
command: |
53+
python -m venv venv
54+
. ./venv/bin/activate
55+
- run:
56+
name: Install Python dependencies
57+
command: |
58+
python -m pip install --upgrade pip
59+
make install-dev
60+
- run:
61+
name: Install Dependencies
62+
command: |
63+
pnpm install
64+
- run:
65+
name: Install VSCode
66+
command: |
67+
cd vscode/extension
68+
pnpm run fetch-vscode
69+
- run:
70+
name: Run VSCode extension tests
71+
command: |
72+
cd vscode/extension
73+
pnpm run test:e2e:ci
4074
vscode_test:
4175
docker:
4276
- image: cimg/node:20.19.1-browsers
@@ -347,4 +381,5 @@ workflows:
347381
- ui_style
348382
- ui_test
349383
- vscode_test
384+
- vscode_e2e_test
350385
- 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)