From 213dd17d8002d5a1949344ebd842305d7bb456f4 Mon Sep 17 00:00:00 2001 From: Sergey Shalnov Date: Sat, 26 Sep 2020 23:04:17 -0500 Subject: [PATCH 1/2] codecov azure learn --- azure-pipelines.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5218ed7610ff..464b87577c3f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -130,10 +130,8 @@ jobs: echo ========================= run code coverage =============================== pytest --cov-report xml:coverage.xml --cov-report term-missing --cov=dpnp export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b - - bash: bash <(curl -s https://codecov.io/bash) -f coverage.xml - env: - CODECOV_TOKEN: $(CODECOV_TOKEN) - displayName: 'Publish code coverage report' + echo ${SHELL} + bash <(curl -s https://codecov.io/bash) -f coverage.xml - job: ubuntu2004 displayName: testing on Ubuntu 20.04 From 493da898126500c29823d62c29de3e3475a5a075 Mon Sep 17 00:00:00 2001 From: Sergey Shalnov Date: Sat, 26 Sep 2020 23:14:08 -0500 Subject: [PATCH 2/2] Update azure-pipelines.yml --- azure-pipelines.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 464b87577c3f..e467cb080d07 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -84,7 +84,18 @@ jobs: pool: vmImage: 'ubuntu-20.04' + strategy: + matrix: + Python37: + python.version: '3.7' + Python38: + python.version: '3.8' + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' - bash: | echo ========================== current SHELL =============================== @@ -132,6 +143,10 @@ jobs: export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b echo ${SHELL} bash <(curl -s https://codecov.io/bash) -f coverage.xml + - script: | + export CODECOV_TOKEN="1158b545-b00a-4a84-a6f9-2bc2c4265d8b + bash <(curl -s https://codecov.io/bash) + displayName: 'Upload to codecov.io' - job: ubuntu2004 displayName: testing on Ubuntu 20.04