15
15
VSIX_NAME : ms-python-insiders.vsix
16
16
COVERAGE_REPORTS : tests-coverage-reports
17
17
TEST_RESULTS_DIRECTORY : .
18
+ # Force a path with spaces and to test extension works in these scenarios
19
+ # Unicode characters are causing 2.7 failures so skip that for now.
20
+ special-working-directory : ' ./path with spaces'
21
+ special-working-directory-relative : ' path with spaces'
18
22
19
23
jobs :
20
24
build-vsix :
@@ -454,9 +458,14 @@ jobs:
454
458
runs-on : ubuntu-latest
455
459
if : github.repository == 'microsoft/vscode-python'
456
460
needs : [tests, smoke-tests]
461
+ defaults :
462
+ run :
463
+ working-directory : ${{env.special-working-directory}}
457
464
steps :
458
465
- name : Checkout
459
466
uses : actions/checkout@v2
467
+ with :
468
+ path : ${{env.special-working-directory-relative}}
460
469
461
470
- name : Use Node ${{env.NODE_VERSION}}
462
471
@@ -472,24 +481,31 @@ jobs:
472
481
- name : Download Ubuntu test coverage artifacts
473
482
uses : actions/download-artifact@v2
474
483
with :
475
- name : Linux-${{env.COVERAGE_REPORTS}}
476
- path : Linux-${{env.COVERAGE_REPORTS}}
484
+ name : Linux-${{ env.COVERAGE_REPORTS }}
485
+ path : ${{env.special-working-directory}}/ Linux-${{ env.COVERAGE_REPORTS }}
477
486
478
487
- name : Extract Ubuntu coverage artifacts to ./nyc_output
479
488
run : |
480
489
mkdir .nyc_output
481
- mv Linux-${{env.COVERAGE_REPORTS}}/* .nyc_output
482
- rm -r Linux-${{env.COVERAGE_REPORTS}}
490
+ mv Linux-${{ env.COVERAGE_REPORTS }}/* .nyc_output
491
+ rm -r Linux-${{ env.COVERAGE_REPORTS }}
483
492
484
493
- name : Generate coverage reports
485
494
run : npm run test:cover:report
486
495
continue-on-error : true
487
496
497
+ # The only location supported by the codecov action is the workspace root.
498
+ # See https://github.com/codecov/codecov-action#arguments
499
+ - name : Move codecov.yml to root
500
+ run : |
501
+ mkdir $GITHUB_WORKSPACE/.github
502
+ mv .github/codecov.yml $GITHUB_WORKSPACE
503
+
488
504
- name : Upload coverage to codecov
489
505
uses : codecov/codecov-action@v1
490
506
with :
491
507
token : ${{ secrets.CODECOV_TOKEN }}
492
- file : . /coverage/cobertura-coverage.xml
508
+ file : ${{env.special-working-directory}} /coverage/cobertura-coverage.xml
493
509
494
510
upload :
495
511
name : Upload VSIX to Azure Blob Storage
0 commit comments