diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0ba9f74f..042ad9fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,6 +11,15 @@ jobs: make && ./tester displayName: Run unit tests + - job: python_format + pool: { vmImage: "ubuntu-latest" } + steps: + - task: UsePythonVersion@0 + - script: | + pip install black==19.10b0 + black --check python/ + displayName: Check Python code format + - job: linux pool: {vmImage: "Ubuntu-16.04"} steps: @@ -24,10 +33,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'}