Skip to content

Format benchmark files as json, add perf thresholds #37

Format benchmark files as json, add perf thresholds

Format benchmark files as json, add perf thresholds #37

# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: MIT
name: tilegym-ci-infra-tests
on:
push:
branches:
- main
- "pull-request/[0-9]+"
permissions:
contents: read
checks: write
jobs:
python-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install ruff
run: pip install ruff==0.14.9
- name: Run ruff import sorting check
run: ruff check --select I .
- name: Run ruff format check
run: ruff format --check --diff .
spdx-headers-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Check SPDX headers
run: python3 .github/scripts/check_spdx_headers.py --action check
utility-scripts-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install pytest pytest-mock pyyaml requests
- name: Run tests
run: pytest .github/infra_tests/ --junit-xml=infra-test-results.xml -v
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: infra-test-results
path: infra-test-results.xml
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: infra-test-results.xml
check_name: Infrastructure Test Results
comment_mode: off