Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/studio-export-fix-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: studio-export-fix-ci

on:
push:
branches: [main, nightly]
paths:
- "unsloth_zoo/llama_cpp.py"
- "tests/test_quantize_gguf_q2_k_l.py"
- "tests/test_convert_hf_to_gguf_patcher.py"
- ".github/workflows/studio-export-fix-ci.yml"
pull_request:
paths:
- "unsloth_zoo/llama_cpp.py"
- "tests/test_quantize_gguf_q2_k_l.py"
- "tests/test_convert_hf_to_gguf_patcher.py"
- ".github/workflows/studio-export-fix-ci.yml"

concurrency:
group: studio-export-fix-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
studio-export-fix:
name: ${{ matrix.os }}
strategy:
fail-fast: false
# Cap matrix at 3 in flight so Windows stays under the repo-level
# 5-concurrent-Windows-runner limit when this job runs alongside others.
max-parallel: 3
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
env:
# 5000/h vs 60/h on raw.githubusercontent.com for the live-upstream tests.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UNSLOTH_COMPILE_DISABLE: '1'
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip

- name: Install minimal test deps
run: |
python -m pip install --upgrade pip
# Pure-Python tests: monkeypatch subprocess + AST-parse upstream files.
# No torch / transformers needed. Keep slim so Windows cold start stays under a minute.
python -m pip install pytest psutil requests tqdm

- name: Run patcher + q2_k_l unit tests
shell: bash
run: |
pytest -v \
tests/test_quantize_gguf_q2_k_l.py \
tests/test_convert_hf_to_gguf_patcher.py
Loading
Loading