Skip to content

Add tripy L0, L1 CI yml #1

Add tripy L0, L1 CI yml

Add tripy L0, L1 CI yml #1

Workflow file for this run

name: Tripy CI
on:
pull_request:
branches:
- main
paths: ['tripy/**']
jobs:
changes:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.filter.outputs.new_container }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
new_container:
- 'tripy/Dockerfile'
- 'tripy/pyproject.toml'
build-new-container-and-test:
needs: changes
if: ${{ needs.changes.outputs.new_container == 'true' }}
runs-on: tripy-self-hosted
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: tripy/
tags: test-image:latest
push: false
- uses: addnab/docker-run-action@v3
with:
image: test-image:latest
run: |
pytest -v -m "l0 or not l1"
l0-no-new-container:
needs: changes
if: ${{ needs.changes.outputs.new_container != 'true' }}
runs-on: tripy-self-hosted
container: ghcr.io/nvidia/tensorrt-incubator/tripy
steps:
- uses: actions/checkout@v4
- name: L0 test
run: |
pytest -v -m "l0 or not l1"