diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b31418d22..29e47bc02 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -74,8 +74,22 @@ steps: pylint --ignored-modules=numpy,scipy,matplotlib,sklearn --disable=E0202 --disable=R,C,W src/UQpy displayName: "Running Pylint" + #- 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 + #workingDirectory: $(Build.SourcesDirectory) + #displayName: 'Test with pytest' + - script: | - python -m pytest tests/*.py --cov=src --cov-report=xml --cov-report=html + 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' diff --git a/tests/Surrogates/test_PCE.py b/tests/test_PCE.py similarity index 100% rename from tests/Surrogates/test_PCE.py rename to tests/test_PCE.py