From dc250bb8d041abe3997d4b306df43dedb8bdcf30 Mon Sep 17 00:00:00 2001 From: Daan Rademaker Date: Tue, 28 Nov 2023 09:41:27 +0100 Subject: [PATCH] test all python versions --- .github/workflows/python-package.yml | 8 ++++---- .../src/databricks_cdk/resources/permissions/changes.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 291eb152..6d945fb1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,9 +5,9 @@ name: Python package on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: test: @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v2 @@ -38,7 +38,7 @@ jobs: uses: mikepenz/action-junit-report@v2 if: always() # always run even if the previous step fails with: - report_paths: 'aws-lambda/junit/report.xml' + report_paths: "aws-lambda/junit/report.xml" - name: Upload Coverage to Codecov uses: codecov/codecov-action@v1 with: diff --git a/aws-lambda/src/databricks_cdk/resources/permissions/changes.py b/aws-lambda/src/databricks_cdk/resources/permissions/changes.py index 083eb357..e5d4f75f 100644 --- a/aws-lambda/src/databricks_cdk/resources/permissions/changes.py +++ b/aws-lambda/src/databricks_cdk/resources/permissions/changes.py @@ -29,7 +29,7 @@ def get_assignment_dict_from_privilege_assignments( def get_permission_changes_principals( assignments_on_databricks_dict: Dict[str, List[Privilege]], assignments_from_properties_dict: Dict[str, List[Privilege]], -) -> list[PermissionsChange]: +) -> List[PermissionsChange]: """See if there are new principals that need to be added""" permission_changes = []