Skip to content

Commit 0a59a63

Browse files
author
Kenneth Nordum
committed
try to add tests
1 parent 697a330 commit 0a59a63

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ steps:
2020
python -m pip install --upgrade pip
2121
pip install poetry
2222
pip install twine
23-
poetry install --no-dev
23+
poetry install
24+
# poetry install --no-dev
2425
displayName: "Install dependencies"
2526
27+
- script: |
28+
poetry run pytest tests/ --cov my_project --cov-report html
29+
displayName: "pytest"
30+
2631
- script: poetry version $(poetry version -s)-dev.$(Build.BuildId)
2732
displayName: "Add pre-release version"
2833
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pydantic = "^1.9.0"
2828
black = "*"
2929
pytest = "*"
3030
pytest-cov = "*"
31+
pytest-azurepipelines = "*"
3132

3233
[build-system]
3334
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)