From a3bf5b85b0ac856a94daf4abfea3d88181e4caf8 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 12:53:11 -0500 Subject: [PATCH] remove workflow dispatch testing for changelog-entry-check since it is not possible --- .github/workflows/_changelog-entry-check.yml | 13 ++----------- pyproject.toml | 2 -- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/_changelog-entry-check.yml b/.github/workflows/_changelog-entry-check.yml index 3e2c324f..ddc97290 100644 --- a/.github/workflows/_changelog-entry-check.yml +++ b/.github/workflows/_changelog-entry-check.yml @@ -1,7 +1,8 @@ name: "Changelog entry check" +# this cannot be tested via workflow_dispatch +# dorny/paths-filter inspects the current trigger to determine how to compare branches on: - pull_request: workflow_call: inputs: package: @@ -12,16 +13,6 @@ on: description: "The PR number" type: string required: true - workflow_dispatch: - inputs: - package: - description: "Choose the package to test" - type: string - default: "dbt-adapters" - pull-request: - description: "The PR number" - type: string - required: true permissions: contents: read diff --git a/pyproject.toml b/pyproject.toml index 0fef004a..36c63556 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,8 +64,6 @@ dependencies = [ setup = "pre-commit install" code-quality = "pre-commit run --all-files" unit-tests = "python -m pytest {args:tests/unit}" - -test-changelog-entry-check = "gh workflow run _changelog-entry-check.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f pull-request={args}" 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" [tool.hatch.envs.build]