Skip to content

Skill Evals: cutile-to-triton + improve-cutile-perf + cutile-to-julia… #400

Skill Evals: cutile-to-triton + improve-cutile-perf + cutile-to-julia…

Skill Evals: cutile-to-triton + improve-cutile-perf + cutile-to-julia… #400

# 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 .
- name: Hint on failure
if: failure()
run: |
echo ""
echo "💡 Run 'bash format.sh' locally to auto-fix formatting issues, then commit the result."
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
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch main branch
run: git fetch origin main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit on changed files
run: |
set -e
base_sha=$(git merge-base HEAD origin/main)
changed=$(git diff --name-only "${base_sha}" HEAD || true)
if [ -n "${changed}" ]; then
echo "Checking changed files:"
echo "${changed}"
SKIP=ruff-check,ruff-format pre-commit run --files ${changed} --show-diff-on-failure
else
echo "No changed files to check."
fi
- name: Hint on failure
if: failure()
run: |
echo ""
echo "💡 Run 'bash format.sh' locally to auto-fix formatting issues, then commit the result."
check-skills-signatures:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch main branch
run: git fetch origin main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Check skills signatures are up-to-date
env:
BASE_REF: origin/main
NVSKILLS_SIGNATURE_COMMIT_TITLE: ${{ vars.NVSKILLS_SIGNATURE_COMMIT_TITLE || 'Attach NVSkills validation signatures' }}
run: python3 .github/scripts/check_skills_signatures.py