Add py3.11 tests for CI consumption workflow. (#1266)

Co-authored-by: Varad Meru <vrdmr@users.noreply.github.com>
Co-authored-by: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com>
This commit is contained in:
pdthummar 2023-10-03 13:03:07 -05:00 коммит произвёл GitHub
Родитель 201013ea70
Коммит 82b988e0fe
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -90,7 +90,7 @@ class TestLinuxConsumption(TestCase):
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 @@ class TestLinuxConsumption(TestCase):
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: