From 06ff4723a5cc26a42b551b54720c9c69391e0384 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Thu, 25 Jan 2024 14:04:52 -0600 Subject: [PATCH] fix command --- .github/workflows/ci_tests.yml | 2 +- pyproject.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 1a24f28f..f3e37e0d 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -57,7 +57,7 @@ jobs: run: pip3 install hatch - name: "Run Tests" - run: hatch run dev-env:pytest tests + run: hatch run dev-env:unit - name: "Get current date" if: always() diff --git a/pyproject.toml b/pyproject.toml index 7c84afe3..c5288544 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,13 +56,14 @@ exclude = [ packages = ["dbt_common"] [tool.hatch.envs.dev-env.scripts] -all = ["pre-commit run --all-files"] +unit = "- python -m pytest --cov=dbt-common --cov-report=xml {args:tests/unit}" [tool.hatch.envs.dev-env] description = "Env for running development commands like pytest / pre-commit" dependencies = [ "pytest~=7.3", "pytest-xdist~=3.2", + "pytest-cov", "httpx~=0.24", "hypothesis~=6.87", "pre-commit~=3.2",