feat: add native vLLM sequence classification compatibility patches #10
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: python-ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| uv-example: | |
| name: python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install the project | |
| # --extra cpu routes torch/torchvision/torchaudio to the pytorch-cpu index. | |
| # Without this, uv would pull the 5.8 GiB ROCm wheels from pytorch-rocm. | |
| run: uv sync --dev --extra cpu --index-strategy=unsafe-best-match | |
| - name: Run unit tests (no Hub / no local models) | |
| run: uv run --extra cpu pytest -m "not integration and not local_model" --cov-report=xml:coverage.xml | |
| # - name: Upload coverage to Codecov | |
| # uses: codecov/codecov-action@v5 | |
| # with: | |
| # files: coverage.xml | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| # fail_ci_if_error: false |