Skip to content

Commit

Permalink
Enables testing for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavm-nvidia committed Nov 23, 2024
1 parent 1bc36c3 commit 7f10e95
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build And Test

on:
pull_request:
branches:
- main
types: [synchronize, opened, reopened, ready_for_review]


jobs:
test:
runs-on: ubuntu-latest
container:
image: nvcr.io/nvidia/tritonserver:24.10-py3
volumes:
- ${{ github.workspace }}:/server

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
apt update
apt install -y --no-install-recommends clang-format-15 cmake libb64-dev rapidjson-dev libre2-dev libssl-dev
wget -O /tmp/boost.tar.gz https://archives.boost.io/release/1.80.0/source/boost_1_80_0.tar.gz && (cd /tmp && tar xzf boost.tar.gz) && mv /tmp/boost_1_80_0/boost /usr/include/boost
pip install pytest requests /opt/tritonserver/python/*.whl pydantic tritonclient[all]
- name: Build
run: |
mkdir -p /server/build
cd /server/build
cmake -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/install ..
make -j8
- name: Run tests with pytest
run: |
cd /server
python3 -m pip install --force-reinstall build/triton-server/python/generic/wheel/dist/tritonfrontend-*.whl
pytest qa/L0_python_api/ -v

0 comments on commit 7f10e95

Please sign in to comment.