Add forward/backward integration tests (#550) #300
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| UV_TORCH_BACKEND: "auto" | |
| HF_TOKEN: ${{ secrets.HF_RED_HAT_READ_ONLY }} | |
| jobs: | |
| quality-checks: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12", "3.13"] | |
| env: | |
| UV_SYSTEM_PYTHON: 1 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies | |
| run: uv pip install .[dev] | |
| - name: Run quality checks | |
| run: make quality | |
| unit-tests: | |
| runs-on: ibm-wdc-k8s-vllm-h100-solo | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.13"] | |
| transformers: ["<5.0.0", ""] # empty string means latest version | |
| exclude: | |
| - python: "3.13" | |
| transformers: "<5.0.0" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup-test-env | |
| with: | |
| python-version: ${{ matrix.python }} | |
| transformers-version: ${{ matrix.transformers }} | |
| - name: Run unit tests | |
| run: python -m pytest -ra tests/unit | |
| integration-tests: | |
| runs-on: ibm-wdc-k8s-vllm-h100-solo | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.13"] | |
| transformers: ["<5.0.0", ""] | |
| exclude: | |
| - python: "3.13" | |
| transformers: "<5.0.0" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup-test-env | |
| with: | |
| python-version: ${{ matrix.python }} | |
| transformers-version: ${{ matrix.transformers }} | |
| - name: Run integration tests | |
| run: python -m pytest -ra tests/integration |