Skip to content

Update events where ci is triggered #4

Update events where ci is triggered

Update events where ci is triggered #4

Workflow file for this run

name: Build NV-Ingest Runtime Image
# Trigger for pull requests and pushing to main
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v3
# Set up Docker Buildx, useful for building multi-platform images
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build the Docker image using the Dockerfile
- name: Build Docker image
run: |
docker build -t nv-ingest:latest .
- name: Run Pytest inside Docker container
run: |
docker run nv-ingest:latest pytest --junitxml=report.xml
- name: Upload test report
uses: actions/upload-artifact@v3
with:
name: pytest-report
path: report.xml