Add Lint job on Azure pipelines
@@ -61,6 +61,32 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
+- job: 'Lint'
+
+ pool:
+ vmImage: 'Ubuntu 16.04'
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '3.x'
+ architecture: 'x64'
+
+ - bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin"
+ displayName: Add conda to PATH
+
+ - script: |
+ conda env create --file environment-dev.yml
+ source activate gammapy-dev
+ pip install -e .
+ gammapy info
+ displayName: 'Create gammapy-dev conda environment'
+
+ - script: |
+ source activate gammapy-dev
+ make flake8
+ displayName: 'Run flake8'
+
- job: 'DevDocs'
pool:
