mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-10-16 21:01:14 +08:00
a3695f1a83
* ci(release): prepare source builds from four main snapshots * docs(release): add verified Kimi RAWINT4 LoRA smoke configs * ci(release): gate four-main PyPI promotion on immutable wheels and model E2E
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
name: Release pipeline contracts (CPU only)
|
|
on:
|
|
pull_request:
|
|
paths: ['.github/release/**', '.github/model-e2e/**', '.github/workflows/release*.yml', '.github/workflows/model-e2e-release.yml']
|
|
push:
|
|
branches: [main]
|
|
paths: ['.github/release/**', '.github/model-e2e/**', '.github/workflows/release*.yml', '.github/workflows/model-e2e-release.yml']
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
contracts:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python -m pip install packaging==25.0 pytest==8.4.2
|
|
- name: Require the independently reviewed model gate (PR 2195)
|
|
run: test -f .github/model-e2e/release_contracts.py
|
|
- name: Test packaging, release identity, failure gates and upload retries
|
|
env:
|
|
PYTHONPATH: ${{ github.workspace }}/.github/model-e2e
|
|
run: python -m pytest -q .github/release
|
|
- run: python -m unittest discover -s .github/model-e2e -p 'test_*.py'
|