Skip to content

Commit

Permalink
test17:26
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Nov 30, 2024
1 parent f72f23c commit b5547d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,12 @@ jobs:
run: |
pip install pytest pytest-random-order deepdiff
- name: Suppress warning Unsupported Windows version (2022server)
- name: Suppress warning ``...Unsupported Windows version (2022server)...``
if: ${{ matrix.python-version == '3.12' && matrix.os == 'windows-latest' }}
run: |
echo "PYTHONWARNINGS=ignore::UserWarning:onnxruntime.capi.onnxruntime_validation" >> $env:GITHUB_ENV
echo "PYTHONWARNINGS=ignore::UserWarning:onnxruntime.capi.onnxruntime_validation:26" >> $env:GITHUB_ENV
- name: UnitTest with pytest
run: |
# put the command into one line to use in various OS to avoid processing differences in new line char sequence
echo $env:PYTHONWARNINGS
pytest --random-order --random-order-bucket=global tests/test_app.py
echo $env:PYTHONWARNINGS
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setUp(self):
@staticmethod
def _m_credsweeper(args) -> Tuple[str, str]:
proc = subprocess.Popen(
[sys.executable, "-m", "credsweeper", *args], #, "-W", "ignore::UserWarning"
[sys.executable, "-m", "credsweeper", *args], #
cwd=APP_PATH.parent, #
stdout=subprocess.PIPE, #
stderr=subprocess.PIPE) #
Expand Down

0 comments on commit b5547d6

Please sign in to comment.