Skip to content

Add tripy L0, L1 CI yml #17

Add tripy L0, L1 CI yml

Add tripy L0, L1 CI yml #17

Workflow file for this run

name: Tripy CI
on:
pull_request:
branches:
- main
paths: ['tripy/**']
env:
DEFAULT_IMAGE: ghcr.io/nvidia/tensorrt-incubator/tripy
NEW_TEST_IMAGE: test-image:latest
jobs:
tripy-l0:
runs-on: tripy-self-hosted
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
new_container:
- 'tripy/Dockerfile'
- 'tripy/pyproject.toml'
- if: steps.filter.outputs.new_container == 'true'
run: echo "l0_image=${{ env.NEW_TEST_IMAGE }}" >> "$GITHUB_ENV"
- if: steps.filter.outputs.new_container != 'true'
run: echo "l0_image=${{ env.DEFAULT_IMAGE }}" >> "$GITHUB_ENV"
- run: echo "Tests will run in $l0_image"
- name: build-new-container
if: steps.filter.outputs.new_container == 'true'
uses: docker/build-push-action@v6
with:
context: tripy/
tags: ${{ env.NEW_TEST_IMAGE }}
push: false
- name: run-test
uses: addnab/docker-run-action@v3
with:
image: ${{ env.l0_image }}
options: --gpus all -v ${{ github.workspace }}:/tripy
run: |
cd tripy
pytest -v -m "l0 or not l1"