-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from perrinjerome/feat/appveyor_matrix
Run tests and linters on multiple python versions and on linux
- Loading branch information
Showing
6 changed files
with
152 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include *.md *.txt *.ini **/py.typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
############################################################################ | ||
# Copyright(c) Open Law Library. All rights reserved. # | ||
# See ThirdPartyNotices.txt in the project root for additional notices. # | ||
# # | ||
# Licensed under the Apache License, Version 2.0 (the "License") # | ||
# you may not use this file except in compliance with the License. # | ||
# You may obtain a copy of the License at # | ||
# # | ||
# http: // www.apache.org/licenses/LICENSE-2.0 # | ||
# # | ||
# Unless required by applicable law or agreed to in writing, software # | ||
# distributed under the License is distributed on an "AS IS" BASIS, # | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # | ||
# See the License for the specific language governing permissions and # | ||
# limitations under the License. # | ||
############################################################################ | ||
|
||
strategy: | ||
matrix: | ||
Python3.5 on linux: | ||
python.version: "3.5" | ||
imageName: "ubuntu-18.04" | ||
Python3.6 on linux: | ||
python.version: "3.6" | ||
imageName: "ubuntu-18.04" | ||
Python3.7 on linux: | ||
python.version: "3.7" | ||
imageName: "ubuntu-18.04" | ||
Python3.8 on linux: | ||
python.version: "3.8" | ||
imageName: "ubuntu-18.04" | ||
Python3.5 on windows: | ||
python.version: "3.5" | ||
imageName: "windows-2019" | ||
Python3.6 on windows: | ||
python.version: "3.6" | ||
imageName: "windows-2019" | ||
Python3.7 on windows: | ||
python.version: "3.7" | ||
imageName: "windows-2019" | ||
Python3.8 on windows: | ||
python.version: "3.8" | ||
imageName: "windows-2019" | ||
|
||
pool: | ||
vmImage: $(imageName) | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: "$(python.version)" | ||
displayName: "Use Python $(python.version)" | ||
|
||
- script: | | ||
python -m pip install --upgrade pip tox setuptools | ||
displayName: "Install python dependencies" | ||
- script: tox -e py | ||
displayName: "tox" | ||
|
||
- bash: | | ||
cd examples/json-extension | ||
# install extension-wide js dependencies | ||
npm install --save-dev | ||
# run tslint | ||
npx tslint client/src/*.ts | ||
# install our dependencies | ||
npm install # TODO: replace with `yarn install` | ||
npm run compile | ||
# check to see if key files will be in the `.vsix` package to be built | ||
npx vsce ls | grep package.json | ||
npx vsce ls | grep out/extension.js | ||
npx vsce ls | grep server/__init__.py | ||
npx vsce ls | grep server/__main__.py | ||
npx vsce ls | grep server/server.py | ||
displayName: "build and check sample extension" | ||
- script: | | ||
python --version | ||
node --version | ||
npm --version | ||
displayName: "Output versions for debugging" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[flake8] | ||
max-line-length = 99 | ||
|
||
[mypy] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[tox] | ||
envlist = py{35,36,37,38} | ||
|
||
[testenv] | ||
extras = | ||
test | ||
dev | ||
commands = | ||
pytest | ||
bandit -r pygls | ||
flake8 | ||
mypy . | ||
|