Download .github/workflows/pre-commit.yml from KwangHwi/merge_cp_2: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/KwangHwi/merge_cp_2/resolve/main/.github/workflows/pre-commit.yml
- Command line
-
hf download hf://KwangHwi/merge_cp_2/.github/workflows/pre-commit.yml
-
curl -L -o pre-commit.yml https://huggingface.co/KwangHwi/merge_cp_2/resolve/main/.github/workflows/pre-commit.yml
1.06 kB
| name: pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.5.29" | |
| - name: Install Python | |
| run: uv python install | |
| - name: Run pre-commit | |
| run: uv run --no-sync --with pre-commit-uv pre-commit run --show-diff-on-failure --color=always --all-files | |
| pytest: | |
| if: github.ref == 'refs/heads/main' || github.event_name == 'pull_request' | |
| name: PyTest | |
| needs: [pre-commit] | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python_version: ["3.10", "3.11", "3.12"] | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.5.29" | |
| - name: Install Project | |
| run: uv python pin ${{ matrix.python_version }} && uv sync --dev --no-extra vllm --extra test | |
| - name: Run PyTest | |
| run: uv run pytest | |