forked from alpha-xone/xbbg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aed4740
commit 7c94c68
Showing
1 changed file
with
40 additions
and
0 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,40 @@ | ||
# https://aka.ms/yaml | ||
jobs: | ||
- job: Python Versions | ||
pool: | ||
vmImage: vs2017-win2016 | ||
strategy: | ||
matrix: | ||
Python36: | ||
python.version: '3.6' | ||
maxParallel: 3 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
architecture: 'x64' | ||
|
||
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
displayName: Add conda to PATH | ||
|
||
- script: | | ||
conda create --yes --quiet --name blp_env python=%PYTHON_VERSION% blpapi | ||
source activate blp_env | ||
displayName: Create Anaconda environment | ||
|
||
- script: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -r requirements.txt | ||
displayName: Install prerequisites | ||
|
||
- script: | | ||
python -m pip install flake8 | ||
flake8 --extend-ignore=E701,E501 xbbg | ||
displayName: Run Lint Tests | ||
|
||
- script: | | ||
pip install pytest pytest-cov coverage | ||
pytest xbbg --doctest-module --cov -v | ||
codecov --token=ff17768d-30bd-4917-98f2-a011606597ea | ||
displayName: Run Doctests and Coverages |