From 59c7368eea71fdcf59bba6cd54b65028bcf1ae8e Mon Sep 17 00:00:00 2001 From: Mohamed ElAsmar Date: Mon, 19 Jun 2023 15:22:39 -0700 Subject: [PATCH 1/2] chore: temporary pin python version to 3.7.16 --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03e29508fe..1cd99ba5e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,9 +57,17 @@ jobs: - "3.11" steps: - uses: actions/checkout@v3 + # @melasmar + # TODO: Revert back to use 3.7 to all operating systems after the regression issue in Python + # https://github.com/actions/setup-python/issues/682 in github action got resolved - uses: actions/setup-python@v4 + if: matrix.os != 'macos-latest' || ( matrix.os == 'macos-latest' && matrix.python != "3.7" ) with: python-version: ${{ matrix.python }} + - uses: actions/setup-python@v4 + if: matrix.os == 'macos-latest' && matrix.python == "3.7" + with: + python-version: "3.7.16" - run: test -f "./.github/ISSUE_TEMPLATE/Bug_report.md" # prevent Bug_report.md from being renamed or deleted - run: make init - run: make pr From 9a4766c4aaa1dc4338ac149e213396f29a5e1451 Mon Sep 17 00:00:00 2001 From: Mohamed ElAsmar Date: Mon, 19 Jun 2023 15:47:03 -0700 Subject: [PATCH 2/2] fix github action syntax error --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cd99ba5e3..a48b384170 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,11 +61,11 @@ jobs: # TODO: Revert back to use 3.7 to all operating systems after the regression issue in Python # https://github.com/actions/setup-python/issues/682 in github action got resolved - uses: actions/setup-python@v4 - if: matrix.os != 'macos-latest' || ( matrix.os == 'macos-latest' && matrix.python != "3.7" ) + if: matrix.os != 'macos-latest' || ( matrix.os == 'macos-latest' && matrix.python != '3.7' ) with: python-version: ${{ matrix.python }} - uses: actions/setup-python@v4 - if: matrix.os == 'macos-latest' && matrix.python == "3.7" + if: matrix.os == 'macos-latest' && matrix.python == '3.7' with: python-version: "3.7.16" - run: test -f "./.github/ISSUE_TEMPLATE/Bug_report.md" # prevent Bug_report.md from being renamed or deleted