Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dgiovanis committed Feb 11, 2021
1 parent 9f67084 commit f5cabe9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,22 @@ steps:
pylint --ignored-modules=numpy,scipy,matplotlib,sklearn --disable=E0202 --disable=R,C,W src/UQpy
displayName: "Running Pylint"
- script: |
#- script: |
#echo "##vso[task.setvariable variable=PATH]${​​​​​​​​PATH}​​​​​​​​:$(Build.SourcesDirectory)/src/UQpy"
python -m pytest -v tests/*.py --cov=src --cov-report=xml --cov-report=html
#python -m pytest -v tests/*.py --cov=src --cov-report=xml --cov-report=html
#workingDirectory: $(Build.SourcesDirectory)
#displayName: 'Test with pytest'

- script: |
pip install pytest
pip install pytest-cov
pip install pytest pytest-azurepipelines
pip install numpy
pip install matplotlib
pip install -U scikit-learn
echo "##vso[task.setvariable variable=PATH]${PATH}:$(Build.SourcesDirectory)/src/UQpy"
# python -m pytest tests/ --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html
pytest tests/*.py --cov-config .coveragerc --import-mode=importlib --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Test with pytest'
Expand Down

0 comments on commit f5cabe9

Please sign in to comment.