Add notebooks test to azure
@@ -53,6 +53,37 @@ jobs:
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()
+- job: 'TestNotebooks'
+
+ pool:
+ vmImage: 'vs2017-win2016'
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '3.7'
+ architecture: 'x64'
+
+ - script: |
+ python -m pip install --upgrade pip setuptools wheel
+ pip install cython numpy astropy regions pyyaml click parfive pydantic jupyter
+ pip install matplotlib reproject iminuit
+ displayName: 'Install dependencies'
+
+ - script: |
+ pip install -e .
+ python -m gammapy info
+ displayName: 'Install Gammapy'
+
+ - script: |
+ gammapy download datasets --out=$(GAMMAPY_DATA) --silent --tests
+ displayName: 'Get GAMMAPY_DATA'
+
+ - script: |
+ gammapy jupyter --src tutorials/
+ displayName: 'Run jupyter notebook tests'
+
+
- job: 'Lint'
pool:
