Skip to content

Commit

Permalink
add pytest runner to makefile, include pytest as a development/test d…
Browse files Browse the repository at this point in the history
…ependency
  • Loading branch information
sierra-moxon committed Jul 12, 2024
1 parent 639e863 commit ff48929
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

# TODO: make this mechanism more robust
MODEL_DIR = ../linkml-model/linkml_model/
RUN=poetry run

update_model:
cp -pr $(MODEL_DIR)/* linkml_runtime/linkml_model

test:
poetry run python -m unittest discover
$(RUN) pytest

# temporary measure until linkml-model is synced
linkml_runtime/processing/validation_datamodel.py: linkml_runtime/processing/validation_datamodel.yaml
Expand Down
124 changes: 115 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ pydantic = ">=1.10.2, <3.0.0"
coverage = "^6.2"
requests-cache = "^1.2.0"

[tool.poetry.group.tests.dependencies]
pytest = "^7.4.0"
pytest-subtests = "^0.11.0"
numpy = [
{ "version" = ">=1.24.3", "python" = "<3.12" },
{ "version" = ">=1.25.2", "python" = ">=3.12" }
]
requests-cache = "^1.2.0"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

0 comments on commit ff48929

Please sign in to comment.