This is an automated email from the ASF dual-hosted git repository. jhtimmins pushed a commit to branch v2-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 005a5d0afc5879a9db1a4d1be6b778101bbf235b Author: Jarek Potiuk <ja...@potiuk.com> AuthorDate: Fri Aug 6 10:19:26 2021 +0200 Disable Helm tests when branch is not main We are preparing Helm chart from main branch only and we never run it from airflow version branches (similarly as providers) This change disables Helm Chart tests in case default branch is different than main. --- .github/workflows/ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7228f37..0d65286 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -574,7 +574,8 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" PYTHON_MAJOR_MINOR_VERSION: ${{needs.build-info.outputs.defaultPythonVersion}} if: > needs.build-info.outputs.needs-helm-tests == 'true' && - (github.repository == 'apache/airflow' || github.event_name != 'schedule') + (github.repository == 'apache/airflow' || github.event_name != 'schedule') && + needs.build-info.outputs.default-branch == 'main' steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 @@ -863,7 +864,8 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" # Only upload coverage on merges to main if: > github.ref == 'refs/heads/main' && github.repository == 'apache/airflow' && - github.event_name == 'push' + github.event_name == 'push' && + needs.build-info.outputs.default-branch == 'main' steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 @@ -945,8 +947,9 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" CURRENT_KUBERNETES_VERSIONS_AS_STRING: > ${{needs.build-info.outputs.kubernetesVersionsListAsString}} if: > - needs.build-info.outputs.run-kubernetes-tests == 'true' || - needs.build-info.outputs.needs-helm-tests == 'true' + ( needs.build-info.outputs.run-kubernetes-tests == 'true' || + needs.build-info.outputs.needs-helm-tests == 'true' ) && + needs.build-info.outputs.default-branch == 'main' steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 @@ -999,7 +1002,9 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" ${{needs.build-info.outputs.pythonVersionsListAsString}} CURRENT_KUBERNETES_VERSIONS_AS_STRING: > ${{needs.build-info.outputs.kubernetesVersionsListAsString}} - if: needs.build-info.outputs.run-kubernetes-tests == 'true' + if: > + needs.build-info.outputs.run-kubernetes-tests == 'true' && + needs.build-info.outputs.default-branch == 'main' steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" uses: actions/checkout@v2 @@ -1059,7 +1064,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" - tests-sqlite - tests-mysql - tests-postgres - - tests-kubernetes env: RUNS_ON: ${{ fromJson(needs.build-info.outputs.runsOn) }} PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }}