Skip to content

Commit 7e22eae

Browse files
committed
ci: exercise benchmark in windows
1 parent 31f90d0 commit 7e22eae

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

.circleci/continue_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ jobs:
131131
which python
132132
python --version
133133
make fast-test
134+
- run:
135+
name: Exercise the benchmarks
136+
command: |
137+
. ./venv/Scripts/activate
138+
$env:USERPROFILE = "C:\Users\circleci"
139+
$env:HOMEDRIVE = "C:"
140+
$env:HOMEPATH = "\Users\circleci"
141+
make benchmark-ci
134142
- store_test_results:
135143
path: test-results
136144

benchmarks/lsp_render_model_bench.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/usr/bin/env python
22

3+
import os
4+
# Set Windows home directory environment variables if not set
5+
if os.name == 'nt' and not os.environ.get('USERPROFILE'):
6+
os.environ['USERPROFILE'] = r'C:\Users\circleci'
7+
os.environ['HOMEDRIVE'] = 'C:'
8+
os.environ['HOMEPATH'] = r'\Users\circleci'
9+
310
import asyncio
411
import pyperf
5-
import os
612
import logging
713
from pathlib import Path
814
from lsprotocol import types

0 commit comments

Comments
 (0)