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
Showing
4 changed files
with
116 additions
and
6 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,50 @@ | ||
# Python package | ||
# Create and test a Python package on multiple Python versions. | ||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/python | ||
|
||
variables: | ||
MPLBACKEND: Agg | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
matrix: | ||
Python27: | ||
python.version: '2.7' | ||
Python34: | ||
python.version: '3.4' | ||
Python35: | ||
python.version: '3.5' | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- script: | | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
displayName: 'Install package' | ||
|
||
- script: | | ||
pip install pytest pytest-azurepipelines pytest-cov | ||
pytest --junitxml=junit/test-results.xml --cov=src/microstructpy --cov-report=xml --cov-report=html --cov-branch | ||
displayName: 'pytest' | ||
|
||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testResultsFiles: '$(System.DefaultWorkingDirectory)/**/junit/test-*.xml' | ||
testRunTitle: 'Publish test results for Python $(python.version)' | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' | ||
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' |
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,50 @@ | ||
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite errors="0" failures="0" hostname="ae-csml-206042l" name="pytest" skipped="0" tests="13" time="1.821" timestamp="2019-10-20T17:27:51.986460"><testcase classname="tests.test_misc" file="tests/test_misc.py" line="5" name="test_from_str_int" time="0.003"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="18" name="test_from_str_float" time="0.002"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="30" name="test_from_str_bool" time="0.002"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="43" name="test_from_str_list" time="0.002"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="55" name="test_from_str_list_of_lists" time="0.002"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="68" name="test_tangent_sphere_2D" time="0.003"></testcase><testcase classname="tests.test_misc" file="tests/test_misc.py" line="82" name="test_tangent_sphere_ND" time="0.002"></testcase><testcase classname="tests.geometry.test_n_sphere" file="tests/geometry/test_n_sphere.py" line="7" name="test_eq" time="0.002"></testcase><testcase classname="tests.meshing.test_polymesh" file="tests/meshing/test_polymesh.py" line="67" name="test_eq" time="0.015"><system-out>transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
not same type | ||
not same length | ||
transform | ||
[0 1 2 3 4] | ||
not same regions | ||
not same verts | ||
transform | ||
[0 1 2 3 4] | ||
not same facets | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers False | ||
checking phase numbers False | ||
</system-out></testcase><testcase classname="tests.meshing.test_polymesh" file="tests/meshing/test_polymesh.py" line="92" name="test_read_write" time="0.006"><system-out>transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
</system-out></testcase><testcase classname="tests.meshing.test_polymesh" file="tests/meshing/test_polymesh.py" line="113" name="test_repr" time="0.007"><system-out>transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
transform | ||
[0 1 2 3 4] | ||
checking seed numbers True | ||
checking phase numbers True | ||
</system-out></testcase><testcase classname="tests.meshing.test_polymesh" file="tests/meshing/test_polymesh.py" line="120" name="test_from_seeds" time="0.159"><system-out>transform | ||
[2 0 4 5 1 3] | ||
checking seed numbers True | ||
checking phase numbers True | ||
</system-out></testcase><testcase classname="tests.meshing.test_polymesh" file="tests/meshing/test_polymesh.py" line="167" name="test_kp_loop" time="0.002"></testcase></testsuite></testsuites> |
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