#2620: add nbmake and pytest xdist to run the notebooks as part of pieline
This commit is contained in:
@@ -126,3 +126,8 @@ stages:
|
|||||||
inputs:
|
inputs:
|
||||||
codeCoverageTool: Cobertura
|
codeCoverageTool: Cobertura
|
||||||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
|
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
|
||||||
|
# Run the notebooks to make sure that they work
|
||||||
|
- script: |
|
||||||
|
pytest --nbmake -n=auto src/primaite/notebooks
|
||||||
|
pytest --nbmake -n=auto src/primaite/simulator/_package_data
|
||||||
|
displayName: 'Run notebooks'
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ dependencies = [
|
|||||||
"typer[all]==0.9.0",
|
"typer[all]==0.9.0",
|
||||||
"pydantic==2.7.0",
|
"pydantic==2.7.0",
|
||||||
"ipywidgets",
|
"ipywidgets",
|
||||||
"deepdiff"
|
"deepdiff",
|
||||||
|
"nbmake==1.5.4",
|
||||||
|
"pytest-xdist==3.6.1"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.setuptools.dynamic]
|
||||||
|
|||||||
Reference in New Issue
Block a user