-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from glassflow/pablo/dev-177-add-pipeline-chec…
…k-method-to-sdk Pablo/dev 177 add pipeline check method to sdk
- Loading branch information
Showing
22 changed files
with
730 additions
and
395 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Test GlassFlow Python SDK | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tests: | ||
name: Run pytest tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
cache: 'pip' | ||
cache-dependency-path: setup.py | ||
|
||
- name: Install dependencies | ||
run: pip install -e .[dev] | ||
|
||
- name: Run Integration Tests | ||
run: pytest tests/glassflow/integration_tests/ | ||
env: | ||
PIPELINE_ID: ${{ secrets.PIPELINE_ID }} | ||
PIPELINE_ACCESS_TOKEN: ${{ secrets.PIPELINE_ACCESS_TOKEN }} | ||
|
||
checks: | ||
name: Run code checks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
cache: 'pip' | ||
cache-dependency-path: setup.py | ||
|
||
- name: Install dependencies | ||
run: pip install -e .[dev] | ||
|
||
- name: Run isort | ||
run: isort . | ||
|
||
- name: Run linter and code formatter | ||
run: ruff check . |
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 |
---|---|---|
|
@@ -9,4 +9,5 @@ utils.bak.py | |
site** | ||
.pypirc | ||
dist/ | ||
build | ||
build | ||
.env |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
|
||
from .client import GlassFlowClient | ||
from .config import GlassFlowConfig | ||
from .client import GlassFlowClient as GlassFlowClient | ||
from .config import GlassFlowConfig as GlassFlowConfig |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .error import * | ||
from .clienterror import * | ||
from .clienterror import ClientError | ||
from .error import Error | ||
|
||
__all__ = ["Error", "ClientError"] |
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 |
---|---|---|
@@ -1,10 +1,21 @@ | ||
from .publishevent import * | ||
from .consumeevent import * | ||
from .consumefailed import * | ||
from .consumeevent import (ConsumeEventRequest, ConsumeEventResponse, | ||
ConsumeEventResponseBody) | ||
from .consumefailed import (ConsumeFailedRequest, ConsumeFailedResponse, | ||
ConsumeFailedResponseBody) | ||
from .publishevent import (PublishEventRequest, PublishEventRequestBody, | ||
PublishEventResponse, PublishEventResponseBody) | ||
from .status_access_token import StatusAccessTokenRequest | ||
|
||
__all__ = [ | ||
"PublishEventRequest", "PublishEventRequestBody", "PublishEventResponse", | ||
"PublishEventResponseBody", "ConsumeEventRequest", "ConsumeEventResponse", | ||
"ConsumeEventResponseBody", "ConsumeFailedRequest", | ||
"ConsumeFailedResponse", "ConsumeFailedResponseBody" | ||
"PublishEventRequest", | ||
"PublishEventRequestBody", | ||
"PublishEventResponse", | ||
"PublishEventResponseBody", | ||
"ConsumeEventRequest", | ||
"ConsumeEventResponse", | ||
"ConsumeEventResponseBody", | ||
"ConsumeFailedRequest", | ||
"ConsumeFailedResponse", | ||
"ConsumeFailedResponseBody", | ||
"StatusAccessTokenRequest", | ||
] |
Oops, something went wrong.