diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index fb4737052..dfad76d7d 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -1,3 +1,7 @@ # Unreleased ## Summary + +## Bug + +* #910: Add `gh-pages.yml` to be ignored when `has_documentation=False` in the `PROJECT_CONFIG` diff --git a/exasol/toolbox/util/workflows/templates.py b/exasol/toolbox/util/workflows/templates.py index 12efa2377..521d1e587 100644 --- a/exasol/toolbox/util/workflows/templates.py +++ b/exasol/toolbox/util/workflows/templates.py @@ -11,7 +11,7 @@ WORKFLOW_TEMPLATES_DIRECTORY = "exasol.toolbox.templates.github.workflows" NOT_MAINTAINED_WORKFLOW_NAMES: Final[list[str]] = ["slow-checks"] -DOCUMENTATION_ONLY_WORKFLOW_NAMES: Final[list[str]] = ["pr-merge"] +DOCUMENTATION_ONLY_WORKFLOW_NAMES: Final[list[str]] = ["gh-pages", "pr-merge"] def get_workflow_templates() -> Mapping[str, Path]: diff --git a/test/unit/nox/_workflow_test.py b/test/unit/nox/_workflow_test.py index ac10d6ad9..b69d7f3ed 100644 --- a/test/unit/nox/_workflow_test.py +++ b/test/unit/nox/_workflow_test.py @@ -103,7 +103,7 @@ def test_raises_exception_when_name_incorrect( @staticmethod @pytest.mark.parametrize( "nox_session_runner_posargs, expected_count", - [(ALL, 13)], + [(ALL, 12)], indirect=["nox_session_runner_posargs"], ) def test_skips_documentation_workflows_when_docs_disabled( @@ -221,7 +221,7 @@ def test_raises_session_quit_without_documentation_workflows( check_workflow(nox_session) assert str(exc.value) == ( - "\n13 workflows are out of date:\n" + "\n12 workflows are out of date:\n" "- build-and-publish\n" "- cd\n" "- check-release-tag\n" @@ -229,7 +229,6 @@ def test_raises_session_quit_without_documentation_workflows( "- ci\n" "- dependency-update\n" "- fast-tests\n" - "- gh-pages\n" "- matrix\n" "- merge-gate\n" "- periodic-validation\n"