Skip to content
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

Adding tests for torch-ort-infer #164

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
27 changes: 27 additions & 0 deletions .github/workflows/torch-ort-infer-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Unit Test (CI)
on:
pull_request:
branches:
- main
jobs:
Pre-Checks:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Packages
run: |
python3 --version
pip install pytest
python torch_ort_inference/build.py
pip install torch_ort_inference/dist/torch_ort_infer*
python -m torch_ort.configure
pip install pandas
pip install transformers
pip install torchvision
- name: Run program
run: python torch_ort_inference/demos/bert_for_sequence_classification.py --input "This is a sample program"
- name: Run Unit Test
run: |
pytest torch_ort_inference/tests/test_openvino_provider_options.py
pytest torch_ort_inference/tests/test_ortinferencemodule.py