From 0dab45d84082c24fabc5f13c57711827a9d769fd Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 8 Jan 2019 18:43:00 +0000 Subject: [PATCH 1/4] Adding codecov --- azure-pipelines.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d3a6a4a..2f577f1 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 + displayName: 'Coverage' + condition: eq(variables.python.version, '3.7') From 37305b4098c106bb909dfa9cfaa0e0bec2b1b778 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 8 Jan 2019 19:05:20 +0000 Subject: [PATCH 2/4] Changing python version condition in azure --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2f577f1..ca93751 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,7 @@ jobs: - script: python -m pip install flake8 && flake8 . displayName: 'Validating PEP-8' - condition: eq(variables.python.version, '3.7') + condition: eq($(python.version), '3.7') - script: python -m pip install --upgrade pip && pip install -e . displayName: 'Install dependencies' @@ -37,4 +37,4 @@ jobs: python -m pip install coverage && coverage run --source=mnist/ mnist/__init__.py python -m pip install codecov && codecov displayName: 'Coverage' - condition: eq(variables.python.version, '3.7') + condition: eq($(python.version), '3.7') From 0591b8c7a965603c4cb960422071b914eab8dbcf Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 8 Jan 2019 19:30:30 +0000 Subject: [PATCH 3/4] Changing python version condition in azure (again) --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ca93751..33a1ad6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,7 @@ jobs: - script: python -m pip install flake8 && flake8 . displayName: 'Validating PEP-8' - condition: eq($(python.version), '3.7') + condition: eq(variables['python.version'], '3.7') - script: python -m pip install --upgrade pip && pip install -e . displayName: 'Install dependencies' @@ -37,4 +37,4 @@ jobs: python -m pip install coverage && coverage run --source=mnist/ mnist/__init__.py python -m pip install codecov && codecov displayName: 'Coverage' - condition: eq($(python.version), '3.7') + condition: eq(variables['python.version'], '3.7') From 768054ba11125b09b3f59f3f3e5d11d4fdea5a81 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Tue, 8 Jan 2019 20:18:05 +0000 Subject: [PATCH 4/4] Adding codecov token --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 33a1ad6..8dd7d74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,6 +35,6 @@ jobs: - script: | python -m pip install coverage && coverage run --source=mnist/ mnist/__init__.py - python -m pip install codecov && codecov + python -m pip install codecov && codecov --token=3a77cb95-5251-47bd-a438-70d139b9f3a3 displayName: 'Coverage' condition: eq(variables['python.version'], '3.7')