-
Notifications
You must be signed in to change notification settings - Fork 8
Python(feat): add integration tests to sift_client #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
35a52ee
wip commit
alexluck-sift 768b69d
change extras isntall testing to only be all or none
alexluck-sift d763b05
add support for .env files and integration test marker for pytest
alexluck-sift 5d46aa7
add integration tests
alexluck-sift c33bdc6
linting and reorganized pre-push hook
alexluck-sift 0cc9a4b
break out unit and integration tests
alexluck-sift 4fb2523
linting
alexluck-sift fcc4bba
update CI
alexluck-sift 2d59cd4
CI update to run all python checks in parallel
alexluck-sift d4abaff
update ci to use pip cahce instead of a full venv
alexluck-sift 449e73b
revert to steps only
alexluck-sift ec54a23
remove error test from test_runs
alexluck-sift bc82512
lint
alexluck-sift ddeafd3
update env
alexluck-sift fa0960c
update env
alexluck-sift 1b3e02b
update env
alexluck-sift d1937b9
update runs integration test
alexluck-sift f3fb8a6
update runs integration test
alexluck-sift c29ec36
fmt
alexluck-sift b7d3dca
fix tests
alexluck-sift df3d868
fix dev script args
alexluck-sift a3ae253
move sift client fixture to a shared file
alexluck-sift 3709185
add channels test
alexluck-sift 4223aa7
add test_calculated_channels.py
alexluck-sift dc1e389
add test_rules.py
alexluck-sift 289604c
add test_ingestion.py
alexluck-sift 69739da
linting
alexluck-sift e589b2a
add base test
alexluck-sift 56f2aec
linting
alexluck-sift 6a5aca3
docs fix
alexluck-sift 4be9e09
- fix tests
alexluck-sift 540cf1b
fix tests
alexluck-sift 2324754
remove environment
alexluck-sift b1cecdd
remove invalid test
alexluck-sift ded6112
improve integration test coverage
alexluck-sift e3704f1
add unit tests for sift_types
alexluck-sift 519e61f
fmt and linting
alexluck-sift 3bc0c2d
update pre-push
alexluck-sift feacab2
fix regression
alexluck-sift File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,35 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
|
|
||
| # Store the root directory of the repository | ||
| REPO_ROOT="$(git rev-parse --show-toplevel)" | ||
| PYTHON_DIR="$REPO_ROOT/python" | ||
|
|
||
| echo "Running Python formatting and linting with --fix..." | ||
|
|
||
| # Change to Python directory | ||
| cd "$PYTHON_DIR" | ||
|
|
||
| # Run ruff format (formatter) | ||
| echo "Running ruff format..." | ||
| bash ./scripts/dev fmt | ||
|
|
||
| # Run ruff check with --fix (linter) | ||
| echo "Running ruff check --fix..." | ||
| bash ./scripts/dev lint-fix | ||
|
|
||
| # Check if any files were modified by formatting/linting | ||
| cd "$REPO_ROOT" | ||
| changed_files=$(git status --porcelain python/lib/sift_client/ | grep -E '\.py$' || true) | ||
|
|
||
| if [ -n "$changed_files" ]; then | ||
| echo "" | ||
| echo "ERROR: Formatting/linting made changes to the following files:" | ||
| echo "$changed_files" | ||
| echo "" | ||
| echo "Please commit these changes before pushing." | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Python formatting and linting completed successfully." |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.