Skip to content

Commit

Permalink
CI: Azure publish results (#591)
Browse files Browse the repository at this point in the history
* publish results

* html
  • Loading branch information
Borda committed Mar 14, 2021
1 parent d841cac commit 9b7fdf8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
24 changes: 21 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,29 @@ jobs:
displayName: 'Install dependencies'
- bash: |
python -m coverage run --source pl_bolts -m pytest pl_bolts tests -v --durations=30
python -m pytest pl_bolts tests -v --cov=pl_bolts --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=30
displayName: 'Testing'
- bash: |
python -m coverage report
python -m coverage xml
codecov --token=$(CODECOV_TOKEN) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
python -m coverage xml -o '$(Build.SourcesDirectory)/coverage.xml'
python -m coverage html
python -m codecov --token=$(CODECOV_TOKEN) --commit=$(Build.SourceVersion) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
ls -l
displayName: 'Statistics'
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFiles: '$(Build.StagingDirectory)/test-results.xml'
testRunTitle: '$(Agent.OS) - $(Build.DefinitionName) - Python $(python.version)'
condition: succeededOrFailed()

- task: PublishCodeCoverageResults@1
displayName: 'Publish coverage report'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '$(Build.SourcesDirectory)/coverage.xml'
reportDirectory: '$(Build.SourcesDirectory)/htmlcov'
testRunTitle: '$(Agent.OS) - $(Build.BuildNumber)[$(Agent.JobName)] - Python $(python.version)'
condition: succeededOrFailed()
13 changes: 6 additions & 7 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
coverage>=5.0
# coverage>=5.0
codecov>=2.1
pytest>=6.0
pytest-cov
pytest-cov>2.10
pytest-flake8
flake8>=3.6
flake8-black
# flake8-black
check-manifest
twine==1.13.0
twine>=3.2
isort>=5.6.4
pre-commit>=1.0
mypy
yapf
mypy>=0.790
yapf>=0.29.0

atari-py==0.2.6 # needed for RL

scikit-learn>=0.23

0 comments on commit 9b7fdf8

Please sign in to comment.