Skip to content

Add spec-driven alignment pipeline and posttrain experiments #2591

Add spec-driven alignment pipeline and posttrain experiments

Add spec-driven alignment pipeline and posttrain experiments #2591

name: Zephyr - Tests
on:
push:
branches:
- main
pull_request:
paths:
- lib/zephyr/**
# Iris is being actively developed, to avoid bugs sneaking into zephyr, we trigger zephyr tests on iris change
- lib/iris/**
- uv.lock
- .github/workflows/zephyr-unit-tests.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cpu-unit-test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.7.20"
enable-cache: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
uv sync --package zephyr --group test --frozen
- name: Test with pytest
run: |
# important: don't cd into lib/zephyr so that ray uv integration doesn't freak out
uv run --package zephyr --frozen pytest --durations=5 --tb=short -m 'not slow and not tpu_ci' -v lib/zephyr/tests/