-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extension - Create okdp python module for cutsom extensions
- Loading branch information
Showing
29 changed files
with
547 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
runs-on: | ||
description: GitHub Actions Runner image | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
|
||
unit-tests: | ||
runs-on: ${{ inputs.runs-on }} | ||
|
||
steps: | ||
- name: Checkout Repo ⚡️ | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup dev env patchs 📦 | ||
uses: ./.github/actions/install-patchs-and-extension | ||
|
||
- name: Create dev environment 📦 | ||
uses: ./docker-stacks/.github/actions/create-dev-env | ||
|
||
- name: Run unit tests | ||
run: pytest python/tests -v | ||
shell: bash | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,8 +188,6 @@ bin/ | |
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.analysis.extraPaths": [ | ||
"./python/okdp", | ||
"./python/tests", | ||
"./docker-stacks" | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import json | ||
import pytest | ||
from okdp.extension.matrix.version_compatibility_matrix import VersionCompatibilityMatrix # type: ignore | ||
|
||
class MockedVersionCompatibilityMatrix(VersionCompatibilityMatrix): | ||
def __init__(self, compatibility_matrix: str, build_matrix: str, git_branch: str): | ||
self.compatibility_matrix = compatibility_matrix | ||
self.build_matrix = build_matrix | ||
self.git_branch = git_branch | ||
|
||
def to_dict(str_as_json: str) -> list[dict]: | ||
return json.loads(str_as_json) | ||
|
||
@pytest.fixture(scope="module") | ||
def version_compatibility_matrix_data(): | ||
return [ | ||
{'python_version': ['3.9'], | ||
'spark_version': ['3.2.1', '3.2.2', '3.2.3', '3.2.4'], | ||
'java_version': ['11'], | ||
'scala_version': ['2.12', '2.13'], | ||
'hadoop_version': ['3.2'], | ||
'spark_download_url': ['https://archive.apache.org/dist/spark/'] | ||
}, | ||
{'python_version': ['3.10'], | ||
'spark_version': ['3.3.1', '3.3.2', '3.3.3', '3.3.4'], | ||
'java_version': ['17'], | ||
'scala_version': ['2.12', '2.13'], | ||
'hadoop_version': ['3'], | ||
'spark_download_url': ['https://archive.apache.org/dist/spark/'] | ||
}, | ||
{'python_version': ['3.11'], | ||
'spark_version': ['3.4.1', '3.4.2'], | ||
'java_version': ['17'], | ||
'scala_version': ['2.12', '2.13'], | ||
'hadoop_version': ['3'], | ||
'spark_download_url': ['https://archive.apache.org/dist/spark/'] | ||
}, | ||
{'python_version': ['3.11'], | ||
'spark_version': ['3.5.0'], | ||
'java_version': ['17', '21'], | ||
'scala_version': ['2.12', '2.13'], | ||
'hadoop_version': ['3'], | ||
'spark_download_url': ['https://archive.apache.org/dist/spark/'] | ||
} | ||
] | ||
|
||
|
||
|
||
|
Oops, something went wrong.