-
Notifications
You must be signed in to change notification settings - Fork 9
test script #893
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
test script #893
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
316beca
test script
warix8 9b02413
Fetch main git history
warix8 72effc7
Full history
warix8 20c11a0
Use logger instead of print
warix8 7148bf3
Better tests script
warix8 a249649
Organize tests
warix8 6cc6bff
Fix
warix8 4fc1cf0
Missing namespace declaration
warix8 bb534d6
Move myeclpay tests to core tests
warix8 022685a
Detect tests modification as module scope
warix8 8bc5edb
Some improvements / fixes
warix8 cb7f9eb
Regex
warix8 b926655
Add a comment
warix8 cf081b0
Use any instead of list
warix8 d63413e
Rename test_PH.py to test_ph.py
warix8 9a79bc4
Fixes
warix8 e04d731
Removed edited on PR
warix8 94aa247
Use sub dir for cdr
warix8 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ name: Test | |
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, edited, ready_for_review, synchronize] | ||
| types: [opened, ready_for_review, synchronize] | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
@@ -52,6 +52,9 @@ jobs: | |
| - name: Check out the code | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Fetch full main branch history # We don't known the the base commit of the PR | ||
| run: git fetch origin main --unshallow | ||
|
|
||
| # Setup Python (faster than using Python container) | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v6 | ||
|
|
@@ -79,8 +82,14 @@ jobs: | |
| path: .pytest_cache | ||
| key: pytest_cache-${{ github.head_ref }} | ||
|
|
||
| - name: Run unit tests with Postgresql | ||
| run: python -m pytest --cov | ||
| # Run unit tests, run them all when push to main branch | ||
| - name: Run all unit tests | ||
| run: python tests_script.py --cov --all | ||
warix8 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if: github.event_name == 'push' | ||
|
|
||
| - name: Run unit tests for changed files | ||
| run: python tests_script.py --cov | ||
| if: github.event_name == 'pull_request' | ||
|
|
||
| - name: Upload coverage reports to Codecov | ||
| uses: codecov/[email protected] | ||
|
|
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
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.