Skip to content

Commit

Permalink
Merge pull request #513 from tla256/master
Browse files Browse the repository at this point in the history
TST: reimplementing publish test results
  • Loading branch information
GavinHuttley committed Jan 31, 2020
2 parents 53dac16 + 58533d1 commit 5d72736
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
42 changes: 42 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
- bash: |
tox -e py36
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.6'
failTaskOnFailedTests: true
- job: Linux_Test_py37
pool: {vmImage: 'ubuntu-latest'}
steps:
Expand All @@ -33,6 +39,12 @@ jobs:
- bash: |
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.7'
failTaskOnFailedTests: true
- job: Linux_Test_py38
pool: {vmImage: 'ubuntu-latest'}
steps:
Expand All @@ -46,6 +58,12 @@ jobs:
- bash: |
tox -e py38
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.8'
failTaskOnFailedTests: true
- job: MacOS_Test_py36
pool: {vmImage: 'macos-latest'}
steps:
Expand All @@ -59,6 +77,12 @@ jobs:
- bash: |
tox -e py36
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.6'
failTaskOnFailedTests: true
- job: MacOS_Test_py37
pool: {vmImage: 'macos-latest'}
steps:
Expand All @@ -72,6 +96,12 @@ jobs:
- bash: |
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.7'
failTaskOnFailedTests: true
- job: MacOS_Test_py38
pool: {vmImage: 'macos-latest'}
steps:
Expand All @@ -85,6 +115,12 @@ jobs:
- bash: |
tox -e py38
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.8'
failTaskOnFailedTests: true
- job: Windows_Test_py37
pool: {vmImage: 'windows-latest'}
steps:
Expand All @@ -95,6 +131,12 @@ jobs:
python -m pip install .[dev] codecov
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Windows Python 3.8'
failTaskOnFailedTests: true

- job: Linux_Build
pool: {vmImage: 'ubuntu-latest'}
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ commands =
changedir = tests
basepython = python3.8
commands =
pytest --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py

[testenv:py37]
changedir = tests
basepython = python3.7
commands =
pytest --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py

[testenv:py37mpi]
changedir = tests
basepython = python3.7
commands =
mpiexec -n 1 pytest --cov-report xml --cov=cogent3 ./ test_mpi.py
mpiexec -n 1 pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ test_mpi.py

[testenv:py36]
changedir = tests
basepython = python3.6
commands =
pytest --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py
pytest --junitxml=junit-{envname}.xml --cov-report xml --cov=cogent3 ./ --ignore=test_mpi.py

0 comments on commit 5d72736

Please sign in to comment.