Skip to content

wip

wip #9

name: Mistral Common Chat templates CI

Check failure on line 1 in .github/workflows/template_test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/template_test.yaml

Invalid workflow file

(Line: 21, Col: 3): Unexpected value 'jobs', (Line: 22, Col: 3): Unexpected value 'build_lint_test', (Line: 23, Col: 9): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.pull_request.draft != true, (Line: 1, Col: 1): Required property is missing: jobs
permissions:
contents: read
on:
push:
branches:
- main
paths:
- "chat_templates/**"
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- "chat_templates/**"
jobs:
build_lint_test:
if: ${{ github.event.pull_request.draft != true }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.13
- name: Check uv lock
run: |
uv lock --check
# Install
- name: Install Dependencies
run: |
uv sync --frozen --all-extras --group dev
uv pip install transformers
# PyTest
- name: Tests
run: |
uv run pytest chat_templates/test_chat_templates.py