From 68c8b5797f3464ac3f97846d97ecc60680944211 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 13:00:34 -0500 Subject: [PATCH] add workflow test script for code quality --- .github/workflows/_code-quality.yml | 1 - pyproject.toml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_code-quality.yml b/.github/workflows/_code-quality.yml index afe4baf2..05d2e6da 100644 --- a/.github/workflows/_code-quality.yml +++ b/.github/workflows/_code-quality.yml @@ -1,7 +1,6 @@ name: "Code quality" on: - pull_request: workflow_call: inputs: branch: diff --git a/pyproject.toml b/pyproject.toml index 36c63556..1f09cf4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,8 @@ dependencies = [ setup = "pre-commit install" code-quality = "pre-commit run --all-files" unit-tests = "python -m pytest {args:tests/unit}" -test-publish = "gh workflow run publish.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f branch=$(git rev-parse --abbrev-ref HEAD) -f deploy-to=test -f pypi-internal=false -f pypi-public=true" +workflow-code-quality = "gh workflow run _code-quality.yml --ref $(git rev-parse --abbrev-ref HEAD) -f branch=$(git rev-parse --abbrev-ref HEAD) -f branch=$(git rev-parse --abbrev-ref HEAD)" +workflow-publish = "gh workflow run publish.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f branch=$(git rev-parse --abbrev-ref HEAD) -f deploy-to=test -f pypi-internal=false -f pypi-public=true" [tool.hatch.envs.build] detached = true