diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d3a6a4a..8dd7d74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,9 +25,16 @@ jobs: - script: python -m pip install flake8 && flake8 . displayName: 'Validating PEP-8' + condition: eq(variables['python.version'], '3.7') - script: python -m pip install --upgrade pip && pip install -e . displayName: 'Install dependencies' - script: python -m unittest discover tests displayName: 'Run unittest tests' + + - script: | + python -m pip install coverage && coverage run --source=mnist/ mnist/__init__.py + python -m pip install codecov && codecov --token=3a77cb95-5251-47bd-a438-70d139b9f3a3 + displayName: 'Coverage' + condition: eq(variables['python.version'], '3.7')