Skip to content

Commit 91826d4

Browse files
authored
Move Python format check into separate CI job (#261)
1 parent 106422b commit 91826d4

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

azure-pipelines.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ jobs:
1111
make && ./tester
1212
displayName: Run unit tests
1313
14+
- job: python_format
15+
pool: { vmImage: "ubuntu-latest" }
16+
steps:
17+
- task: UsePythonVersion@0
18+
- script: |
19+
pip install black==19.10b0
20+
black --check python/
21+
displayName: Check Python code format
22+
1423
- job: linux
1524
pool: {vmImage: "Ubuntu-16.04"}
1625
steps:
@@ -24,10 +33,6 @@ jobs:
2433
cibuildwheel --output-dir wheelhouse .
2534
- task: PublishBuildArtifacts@1
2635
inputs: {pathtoPublish: 'python/wheelhouse'}
27-
- script: |
28-
pip install black==19.10b0
29-
black --check python/
30-
displayName: Check Python code format
3136

3237
- job: macos
3338
pool: {vmImage: 'macOS-10.13'}

0 commit comments

Comments
 (0)