This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
forked from simple-salesforce/simple-salesforce
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ustream v1.12.6 updates added to async clients (#15)
Async client now supports the following changes from upstream sync client: * Add support for query_all in bulk2 * Pass through params in api get * Allow Non-Standard Domain in JWT for GovCloud * Add type annotations In addition, we have fixed a major bug with the async metadata client which would have left various functionalities in those clients broken (missing `address` for ServiceProxy). Finally, this PR has also pulled the `tests` directory _out_ of the package, instead of shipping it with the library.
- Loading branch information
Showing
29 changed files
with
1,498 additions
and
598 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 |
---|---|---|
|
@@ -3,12 +3,21 @@ on: | |
pull_request: | ||
branches: | ||
- master | ||
- main | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
- '*.rst' | ||
|
||
jobs: | ||
tests: | ||
env: | ||
COVERAGE_DIR: ${{ format('/tmp/coverage/{0}', github.run_id) }} | ||
permissions: | ||
checks: write | ||
contents: read | ||
pull-requests: write | ||
|
||
name: "Python ${{ matrix.python-version }}" | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
|
@@ -34,4 +43,36 @@ jobs: | |
- name: "Run poetry install deps" | ||
run: "poetry install --no-root" | ||
- name: "Run tests" | ||
run: "poetry run pytest" | ||
run: "poetry run pytest --cov-report xml --junitxml=${COVERAGE_DIR}/unittest.junit.xml" | ||
|
||
# - name: "Run mypy" | ||
# run: "poetry run mypy simple_salesforce/aio" | ||
|
||
# Publish code coverage results | ||
- name: Code Coverage Report | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
uses: irongut/[email protected] | ||
with: | ||
filename: coverage.xml | ||
badge: true | ||
fail_below_min: true | ||
format: markdown | ||
hide_branch_rate: false | ||
hide_complexity: true | ||
indicators: true | ||
output: both | ||
thresholds: '70 80' | ||
|
||
- name: Add Coverage PR Comment | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
recreate: true | ||
path: code-coverage-results.md | ||
|
||
# Publish junit test result | ||
- name: Publish Test Report | ||
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' }} | ||
uses: mikepenz/action-junit-report@v4 | ||
with: | ||
report_paths: ${{ format('/tmp/coverage/{0}/*junit.xml', github.run_id) }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.