Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Python package discovery #824

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest]
gcc_v: [11]
node-version: [18.x]
fail-fast: false
Expand Down Expand Up @@ -33,6 +33,16 @@ jobs:
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}

- name: Install GCC compilers Windows
if: contains(matrix.os, 'windows')
run: |
Invoke-WebRequest -Uri $Env:GCC_DOWNLOAD -OutFile mingw-w64.zip
Expand-Archive mingw-w64.zip
echo "$pwd\mingw-w64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
env:
GCC_DOWNLOAD: |
https://github.com/brechtsanders/winlibs_mingw/releases/download/13.0.1-snapshot20230122-10.0.0-msvcrt-r1/winlibs-i686-posix-dwarf-gcc-13.0.1-snapshot20230122-mingw-w64msvcrt-10.0.0-r1.zip

- name: Installing Extension
run: npm ci
- name: Compile
Expand All @@ -42,12 +52,12 @@ jobs:
- name: Test Syntax Highlighting
run: npm run test:grammar
- name: Test Unittests
uses: GabrielBB/xvfb-action@v1
uses: GabrielBB/xvfb-action@v1.6
with:
run: npm run test
# This will not fail the job if tests fail so we have to npm test separately
- name: Coverage report
uses: GabrielBB/xvfb-action@v1
uses: GabrielBB/xvfb-action@v1.6
with:
run: npm run coverage
- name: Upload coverage to Codecov
Expand Down
266 changes: 266 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
"properties": {
"fortran.fortls.path": {
"type": "string",
"default": "fortls",
"default": "",
"markdownDescription": "Path to the Fortran language server (`fortls`).",
"order": 10
},
Expand Down Expand Up @@ -758,6 +758,7 @@
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.3.4",
"c8": "^8.0.1",
"copy-webpack-plugin": "^11.0.0",
"eslint": "^8.51.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsdoc": "^46.8.2",
Expand Down
Loading