Skip to content

feat(trl): introduce unified TRL training script for GSM8K and MATH d… #499

feat(trl): introduce unified TRL training script for GSM8K and MATH d…

feat(trl): introduce unified TRL training script for GSM8K and MATH d… #499

Workflow file for this run

name: CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
lint:
name: Lint with Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --extra dev
- name: Run Ruff linter
run: uv run ruff check --no-cache .
- name: Run Ruff formatter check
run: uv run ruff format --check .
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Run tests with pytest
run: uv run pytest tests/ -v --tb=short
env:
PYTHONPATH: ${{ github.workspace }}