Skip to content

Commit 0df5d0e

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

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.circleci/continue_config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,42 @@ 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+
sudo apt-get update
50+
sudo apt-get install -y python3.10-venv python3-pip
51+
python3.10 -m pip install --upgrade pip
52+
- run:
53+
name: Create Python venv
54+
command: |
55+
python3 -m venv venv
56+
. ./venv/bin/activate
57+
- run:
58+
name: Install Python dependencies
59+
command: |
60+
python -m pip install --upgrade pip
61+
make install-dev
62+
- run:
63+
name: Install Dependencies
64+
command: |
65+
pnpm install
66+
- run:
67+
name: Install VSCode
68+
command: |
69+
cd vscode/extension
70+
pnpm run fetch-vscode
71+
- run:
72+
name: Run VSCode extension tests
73+
command: |
74+
cd vscode/extension
75+
pnpm run test:e2e:ci
4076
vscode_test:
4177
docker:
4278
- image: cimg/node:20.19.1-browsers
@@ -347,4 +383,5 @@ workflows:
347383
- ui_style
348384
- ui_test
349385
- vscode_test
386+
- vscode_e2e_test
350387
- 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)