73
73
run : |
74
74
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
75
75
python -m pip install --upgrade -r build/test-requirements.txt
76
+ python -m pip install --upgrade -r build/test-python-requirements.txt
76
77
77
78
- name : Run Pyright
78
79
uses : jakebailey/pyright-action@v1
@@ -142,6 +143,11 @@ jobs:
142
143
143
144
- name : Install test requirements
144
145
run : python -m pip install --upgrade -r build/test-requirements.txt
146
+ if : matrix.test-suite != 'python-unit'
147
+
148
+ - name : Install Python test requirements
149
+ run : python -m pip install --upgrade -r build/test-python-requirements.txt
150
+ if : matrix.test-suite == 'python-unit'
145
151
146
152
- name : Install debugpy wheels (Python ${{ matrix.python }})
147
153
run : |
@@ -338,6 +344,7 @@ jobs:
338
344
requirements.txt
339
345
pythonFiles/jedilsp_requirements/requirements.txt
340
346
build/test-requirements.txt
347
+ build/test-python-requirements.txt
341
348
build/functional-test-requirements.txt
342
349
343
350
- name : Install base Python requirements
@@ -356,6 +363,15 @@ jobs:
356
363
# We need to have debugpy so that tests relying on it keep passing, but we don't need install_debugpy's logic in the test phase.
357
364
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --implementation py --no-deps --upgrade --pre debugpy
358
365
366
+ - name : Install Python test requirements
367
+ run : python -m pip install --upgrade -r build/test-python-requirements.txt
368
+
369
+ - name : Run Python unit tests
370
+ # Run this test before installing more dependencies.
371
+ # some package cause interference when testing pytest session under pytest session
372
+ # like for pytest plugin tests.
373
+ run : python pythonFiles/tests/run_all.py
374
+
359
375
- name : Install test requirements
360
376
run : python -m pip install --upgrade -r build/test-requirements.txt
361
377
@@ -428,10 +444,6 @@ jobs:
428
444
- name : Run TypeScript unit tests
429
445
run : npm run test:unittests:cover
430
446
431
- - name : Run Python unit tests
432
- run : |
433
- python pythonFiles/tests/run_all.py
434
-
435
447
# The virtual environment based tests use the `testSingleWorkspace` set of tests
436
448
# with the environment variable `TEST_FILES_SUFFIX` set to `testvirtualenvs`,
437
449
# which is set in the "Prepare environment for venv tests" step.
0 commit comments