-
Notifications
You must be signed in to change notification settings - Fork 0
austin/match-ts-parity #32
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 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
577639f
Check point
HungKNguyen 96ca350
progress with typing
HungKNguyen 3c57afc
Finish type checking
HungKNguyen 76f8145
enable precommit hook
HungKNguyen e95bd45
remove test, fix ruff
HungKNguyen e37243d
draft documentation
HungKNguyen d3c58c8
update documentation
HungKNguyen c9fa7de
update documentation
HungKNguyen 0814388
update workflow
HungKNguyen 86e8e95
improve on testing
HungKNguyen 74d31c1
finish on testing
HungKNguyen 980b75e
update api key example
HungKNguyen f78f765
update scripts
HungKNguyen 08de0a1
update dependency
HungKNguyen 111b05b
add example
HungKNguyen 0f3ebe5
increase major version
HungKNguyen 107b85f
add a manual publish script
HungKNguyen d4c8b7c
add user agent tracking
HungKNguyen 6c1581e
make package more Pythonic
HungKNguyen d003be6
update GitHub actions, better typing
HungKNguyen 00cb859
update Documentation
HungKNguyen 9ca6eeb
feat: set UserAgent version to 0.0.0-dev when developing
HungKNguyen 84f0137
feat: add example setup using virtual env
HungKNguyen 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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
| # Nutrient DWS Processor API Configuration for Testing | ||
| NUTRIENT_API_KEY=your_api_key_here | ||
| NUTRIENT_BASE_URL=https://api.nutrient.io |
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,54 @@ | ||
| name: Integration Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| integration-tests: | ||
| runs-on: ubuntu-latest | ||
| needs: [] # Run in parallel with other workflows | ||
|
|
||
| strategy: | ||
| matrix: | ||
| python-version: ['3.10', '3.11', '3.12'] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: 'pip' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| pip install ".[dev]" | ||
|
|
||
| - name: Check for API key | ||
| id: check-api-key | ||
| env: | ||
| NUTRIENT_API_KEY: ${{ secrets.NUTRIENT_API_KEY }} | ||
| run: | | ||
| if [ -n "$NUTRIENT_API_KEY" ] && [ "$NUTRIENT_API_KEY" != "fake_key" ] && [ ${#NUTRIENT_API_KEY} -gt 10 ]; then | ||
| echo "has_api_key=true" >> $GITHUB_OUTPUT | ||
| echo "✅ Valid API key detected" | ||
| else | ||
| echo "has_api_key=false" >> $GITHUB_OUTPUT | ||
| echo "⏭️ No valid API key - Integration tests will be skipped" | ||
| fi | ||
|
|
||
| - name: Run integration tests | ||
| if: steps.check-api-key.outputs.has_api_key == 'true' | ||
| env: | ||
| NUTRIENT_API_KEY: ${{ secrets.NUTRIENT_API_KEY }} | ||
| run: python -m pytest tests/test_integration.py -v | ||
|
|
||
| - name: Skip integration tests (no API key) | ||
| if: steps.check-api-key.outputs.has_api_key == 'false' | ||
| run: | | ||
| echo "✅ Integration tests skipped - no valid API key available" | ||
| echo "This is expected for forks and external PRs" |
This file was deleted.
Oops, something went wrong.
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
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.