From 9433f7f265211ff112f54f42b3be87301da39e63 Mon Sep 17 00:00:00 2001 From: pthummar Date: Thu, 15 Jun 2023 17:51:21 -0500 Subject: [PATCH] Add py3.11 tests for CI consumption workflow. --- .github/workflows/ci_consumption_workflow.yml | 7 ++++++- tests/consumption_tests/test_linux_consumption.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_consumption_workflow.yml b/.github/workflows/ci_consumption_workflow.yml index aff1c3d24..4dbc1e365 100644 --- a/.github/workflows/ci_consumption_workflow.yml +++ b/.github/workflows/ci_consumption_workflow.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ 3.7, 3.8, 3.9, "3.10" ] + python-version: [ 3.7, 3.8, 3.9, "3.10", "3.11" ] steps: - name: Checkout code. @@ -51,3 +51,8 @@ jobs: env: AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString310 }} run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests + - name: Running 3.11 Tests + if: matrix.python-version == 3.11 + env: + AzureWebJobsStorage: ${{ secrets.LinuxStorageConnectionString311 }} + run: python -m pytest -n auto --dist loadfile -vv --reruns 4 --instafail tests/consumption_tests diff --git a/tests/consumption_tests/test_linux_consumption.py b/tests/consumption_tests/test_linux_consumption.py index 681ae866f..f3c8bfaf5 100644 --- a/tests/consumption_tests/test_linux_consumption.py +++ b/tests/consumption_tests/test_linux_consumption.py @@ -90,7 +90,7 @@ def test_common_libraries(self): self.assertIn('pyodbc', content) self.assertIn('requests', content) - @skipIf(sys.version_info.minor == 10, + @skipIf(sys.version_info.minor in (10, 11), "Protobuf pinning fails during remote build") def test_new_protobuf(self): """A function app with the following requirements.txt: @@ -120,7 +120,7 @@ def test_new_protobuf(self): self.assertEqual(content['google.protobuf'], '3.15.8') self.assertEqual(content['grpc'], '1.33.2') - @skipIf(sys.version_info.minor == 10, + @skipIf(sys.version_info.minor in (10, 11), "Protobuf pinning fails during remote build") def test_old_protobuf(self): """A function app with the following requirements.txt: