Skip to content

Commit

Permalink
mitigating onnx install issue (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksaur authored Aug 5, 2024
1 parent df57eed commit 94d49f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ jobs:
cd ~/work/hummingbird/tvm/python
python3 -m pip install -e .
# We don't run pytest for macos py3.9 since we do coverage for that case.
# We don't run pytest for ubuntu py3.9 since we do coverage for that case.
- name: Test with pytest
if: ${{ matrix.python-version != '3.9' || startsWith(matrix.os, 'macos') != true }}
if: ${{ matrix.python-version != '3.9' || startsWith(matrix.os, 'ubuntu') != true }}
run: pytest
# Run and push coverage only for macos py3.9
- name: Coverage 3.9 macos
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'macos') }}
# Run and push coverage only for ubuntu py3.9
- name: Coverage 3.9 ubuntu
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'ubuntu') }}
run: |
coverage run -a -m pytest tests
coverage xml
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'macos') }}
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'ubuntu') }}
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
install_requires = [
"numpy>=1.15",
"onnxconverter-common>=1.6.0",
"onnx<=1.16.1",
"scipy",
"scikit-learn",
"torch>1.7.0",
Expand Down

0 comments on commit 94d49f8

Please sign in to comment.