From ed9c92af2d1014ae8880142df91d501857934569 Mon Sep 17 00:00:00 2001 From: Sandy Ryza Date: Thu, 25 Apr 2024 09:29:38 -0700 Subject: [PATCH] run DagsterModel tests in buildkite (#21424) ## Summary & Motivation ## How I Tested These Changes --- .../dagster-buildkite/dagster_buildkite/steps/packages.py | 2 ++ python_modules/dagster/tox.ini | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py b/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py index 4ecb4dbce5b62..4a83626c4312d 100644 --- a/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py +++ b/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py @@ -381,6 +381,8 @@ def _unsupported_dagster_python_versions(tox_factor: Optional[str]) -> List[Avai "cli_tests", "core_tests_pydantic1", "core_tests_pydantic2", + "model_tests_pydantic1", + "model_tests_pydantic2", "storage_tests_sqlalchemy_1_3", "storage_tests_sqlalchemy_1_4", "daemon_sensor_tests", diff --git a/python_modules/dagster/tox.ini b/python_modules/dagster/tox.ini index 490f3001083cb..948b3b69414f7 100644 --- a/python_modules/dagster/tox.ini +++ b/python_modules/dagster/tox.ini @@ -25,6 +25,8 @@ deps = general_tests_old_protobuf: protobuf<4 core_tests_pydantic1: pydantic!=1.10.7,<2.0.0 core_tests_pydantic2: pydantic>=2.0.0 + model_tests_pydantic1: pydantic!=1.10.7,<2.0.0 + model_tests_pydantic2: pydantic>=2.0.0 type_signature_tests: pydantic!=1.10.7,<2.0.0 -e ../dagster-test -e .[mypy,test,pyright] @@ -40,6 +42,8 @@ commands = core_tests_pydantic1: pytest -c ../../pyproject.toml -vv ./dagster_tests/core_tests {env:COVERAGE_ARGS} --durations 10 {posargs} core_tests_pydantic2: pytest -c ../../pyproject.toml -vv ./dagster_tests/core_tests {env:COVERAGE_ARGS} --durations 10 {posargs} type_signature_tests: pytest -c ../../pyproject.toml -vv ./dagster_tests/core_tests {env:COVERAGE_ARGS} --durations 10 {posargs} -m 'typesignature' + model_tests_pydantic1: pytest -c ../../pyproject.toml -vv ./dagster_tests/model_tests {env:COVERAGE_ARGS} --durations 10 {posargs} + model_tests_pydantic2: pytest -c ../../pyproject.toml -vv ./dagster_tests/model_tests {env:COVERAGE_ARGS} --durations 10 {posargs} storage_tests: pytest -c ../../pyproject.toml -vv ./dagster_tests/storage_tests {env:COVERAGE_ARGS} --durations 10 {posargs} definitions_tests: pytest -c ../../pyproject.toml -vv ./dagster_tests/definitions_tests {env:COVERAGE_ARGS} --durations 10 {posargs} definitions_tests_pendulum_1: pytest -c ../../pyproject.toml -vv ./dagster_tests/definitions_tests {env:COVERAGE_ARGS} --durations 10 {posargs}