Skip to content

docs: add workflow deep standardization changelog #6

docs: add workflow deep standardization changelog

docs: add workflow deep standardization changelog #6

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 27, Col: 9): Unexpected value 'cache', (Line: 68, Col: 9): Unexpected value 'cache'
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-python:
name: Python Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install ruff
run: pip install ruff
- name: Ruff check
run: ruff check python/ tests/ benchmarks/
- name: Ruff format check
run: ruff format --check python/ tests/ benchmarks/
build-cuda:
name: CUDA Build
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
cmake ninja-build python3-dev python3-pip git
rm -rf /var/lib/apt/lists/*
- name: Configure (Release preset)
run: cmake --preset release
- name: Build
run: cmake --build --preset release -j$(nproc)
test-python:
name: Python Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install test dependencies
run: pip install pytest hypothesis torch --index-url https://download.pytorch.org/whl/cpu
- name: Run tests (skip CUDA)
run: pytest tests/ -v -m "not cuda" --tb=short || true