Skip instalation of provider sdist packages when provider tests skipped (#31827)
The job was supposed to be skipped when provider tests were not run. But
it was not.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5671422..2857877 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -777,7 +777,9 @@
RUNS_ON: "${{needs.build-info.outputs.runs-on}}"
PYTHON_MAJOR_MINOR_VERSION: "${{needs.build-info.outputs.default-python-version}}"
USE_AIRFLOW_VERSION: "sdist"
- if: needs.build-info.outputs.canary-run == 'true'
+ if: >
+ needs.build-info.outputs.canary-run == 'true' &&
+ needs.build-info.outputs.skip-provider-tests != 'true'
steps:
- name: Cleanup repo
run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*"