#2620: add nbmake and pytest xdist to run the notebooks as part of pieline

This commit is contained in:
Czar Echavez
2024-06-28 16:33:24 +01:00
parent e7fc01781e
commit a4424608dd
2 changed files with 8 additions and 1 deletions

View File

@@ -126,3 +126,8 @@ stages:
inputs:
codeCoverageTool: Cobertura
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'

View File

@@ -37,7 +37,9 @@ dependencies = [
"typer[all]==0.9.0",
"pydantic==2.7.0",
"ipywidgets",
"deepdiff"
"deepdiff",
"nbmake==1.5.4",
"pytest-xdist==3.6.1"
]
[tool.setuptools.dynamic]