From d3858b493d199ffde6b151b04a55e0ab154d9e44 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 7 Dec 2023 11:15:55 +0100 Subject: [PATCH] ci: run pytest_build_system_win only with labels and schedule pipeline --- .gitlab/ci/build.yml | 2 +- .gitlab/ci/dependencies/dependencies.yml | 12 ++++++------ .gitlab/ci/rules.yml | 17 +++++++---------- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.gitlab/ci/build.yml b/.gitlab/ci/build.yml index 6cbfa370ca..b58a008f39 100644 --- a/.gitlab/ci/build.yml +++ b/.gitlab/ci/build.yml @@ -569,7 +569,7 @@ pytest_build_system_macos: pytest_build_system_win: extends: - .test_build_system_template_win - - .rules:test:windows_pytest_build_system + - .rules:labels:windows_pytest_build_system needs: [] tags: - windows-target diff --git a/.gitlab/ci/dependencies/dependencies.yml b/.gitlab/ci/dependencies/dependencies.yml index e0e0face19..217e701db5 100644 --- a/.gitlab/ci/dependencies/dependencies.yml +++ b/.gitlab/ci/dependencies/dependencies.yml @@ -175,15 +175,15 @@ patterns: - submodule -"test:windows_pytest_build_system": - labels: - - windows - specific_rules: - - if-schedule-test-build-system-windows - ################################# # Triggered Only By Labels Jobs # ################################# "labels:nvs_coverage": # host_test labels: - nvs_coverage + +"labels:windows_pytest_build_system": + labels: + - windows + specific_rules: + - if-schedule-test-build-system-windows diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 419faeb38d..ae688f66b5 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -1615,6 +1615,13 @@ when: never - <<: *if-label-nvs_coverage +.rules:labels:windows_pytest_build_system: + rules: + - <<: *if-revert-branch + when: never + - <<: *if-schedule-test-build-system-windows + - <<: *if-label-windows + .rules:test:component_ut-esp32: rules: - <<: *if-revert-branch @@ -2579,13 +2586,3 @@ - <<: *if-label-submodule - <<: *if-dev-push changes: *patterns-submodule - -.rules:test:windows_pytest_build_system: - rules: - - <<: *if-revert-branch - when: never - - <<: *if-protected - - <<: *if-label-build-only - when: never - - <<: *if-schedule-test-build-system-windows - - <<: *if-label-windows