diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be33c90f6..846872bff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: architecture: "x64" - run: pip3 install hatch - - run: hatch run tests.py3.9-2.7:type-check + - run: hatch run tests.py3.9-2.8:type-check Run-Unit-Tests: runs-on: ubuntu-latest @@ -59,6 +59,12 @@ jobs: airflow-version: "2.7" - python-version: "3.12" airflow-version: "2.8" + # It's observed that the dependencies resolution for Apache Airflow versions 2.7 are error-ring out with deep + # resolutions. This is a temporary exclusion until the issue is resolved. + - python-version: "3.8" + airflow-version: "2.7" + - python-version: "3.9" + airflow-version: "2.7" steps: - uses: actions/checkout@v3 with: @@ -104,6 +110,12 @@ jobs: airflow-version: "2.4" - python-version: "3.11" airflow-version: "2.5" + # It's observed that the dependencies resolution for Apache Airflow versions 2.7 are error-ring out with deep + # resolutions. This is a temporary exclusion until the issue is resolved. + - python-version: "3.8" + airflow-version: "2.7" + - python-version: "3.9" + airflow-version: "2.7" services: postgres: image: postgres @@ -254,7 +266,7 @@ jobs: strategy: matrix: python-version: ["3.11"] - airflow-version: ["2.7"] + airflow-version: ["2.8"] steps: - uses: actions/checkout@v3 @@ -319,7 +331,7 @@ jobs: strategy: matrix: python-version: [ "3.11" ] - airflow-version: [ "2.7" ] + airflow-version: [ "2.8" ] services: postgres: image: postgres @@ -395,7 +407,7 @@ jobs: strategy: matrix: python-version: ["3.11"] - airflow-version: ["2.7"] + airflow-version: ["2.8"] num-models: [1, 10, 50, 100] services: postgres: diff --git a/scripts/test/pre-install-airflow.sh b/scripts/test/pre-install-airflow.sh index 08dcf042d..29ec01038 100755 --- a/scripts/test/pre-install-airflow.sh +++ b/scripts/test/pre-install-airflow.sh @@ -22,4 +22,15 @@ mv /tmp/constraint.txt.tmp /tmp/constraint.txt pip install uv uv pip install "apache-airflow==$AIRFLOW_VERSION" --constraint /tmp/constraint.txt uv pip install pydantic --constraint /tmp/constraint.txt + + +if [ "$AIRFLOW_VERSION" = "2.7" ]; then + uv pip install "apache-airflow-providers-amazon[s3fs]" --constraint /tmp/constraint.txt + uv pip install "apache-airflow-providers-cncf-kubernetes" --constraint /tmp/constraint.txt + uv pip install "apache-airflow-providers-docker" --constraint /tmp/constraint.txt + uv pip install "apache-airflow-providers-google" --constraint /tmp/constraint.txt + uv pip install "apache-airflow-providers-microsoft-azure" --constraint /tmp/constraint.txt + uv pip install "apache-airflow-providers-postgres" --constraint /tmp/constraint.txt +fi + rm /tmp/constraint.txt