From 671635184016b69d3af65adaf8898c16660002af Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Wed, 26 Feb 2020 17:02:01 -0500 Subject: [PATCH 1/3] Separate Python format check into separate job --- azure-pipelines.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0ba9f74f..49bc1620 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,6 +11,14 @@ jobs: make && ./tester displayName: Run unit tests + - job: python_format + pool: { vmImage: "ubuntu-latest" } + steps: + - script: | + pip install black==19.10b0 + black --check python/ + displayName: Check Python code format + - job: linux pool: {vmImage: "Ubuntu-16.04"} steps: @@ -24,10 +32,6 @@ jobs: cibuildwheel --output-dir wheelhouse . - task: PublishBuildArtifacts@1 inputs: {pathtoPublish: 'python/wheelhouse'} - - script: | - pip install black==19.10b0 - black --check python/ - displayName: Check Python code format - job: macos pool: {vmImage: 'macOS-10.13'} From ccf8088ad61d523c77ec7a2b35f23441164745e6 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Wed, 26 Feb 2020 17:04:35 -0500 Subject: [PATCH 2/3] Try to fix --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 49bc1620..972c4873 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,6 +15,7 @@ jobs: pool: { vmImage: "ubuntu-latest" } steps: - script: | + python -m pip install --upgrade pip pip install black==19.10b0 black --check python/ displayName: Check Python code format From da207b35608697bd72721840ad8046deab2ac2dc Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Wed, 26 Feb 2020 17:06:14 -0500 Subject: [PATCH 3/3] Try to fix again --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 972c4873..042ad9fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,8 +14,8 @@ jobs: - job: python_format pool: { vmImage: "ubuntu-latest" } steps: + - task: UsePythonVersion@0 - script: | - python -m pip install --upgrade pip pip install black==19.10b0 black --check python/ displayName: Check Python code format