chore(ci): update workflows

pull/799/head
Dowon 2025-06-07 12:20:55 +09:00
parent b75b1aa1dd
commit e41ee473c8
No known key found for this signature in database
GPG Key ID: 9CCE5CDC08E34AD0
3 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@ on:
push: push:
tags: tags:
- "v*" - "v*"
workflow_dispatch:
jobs: jobs:
test: test:
@ -18,9 +19,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- name: Build wheel - name: Build wheel
run: pipx run build run: uv build
- name: Publish to PyPI - name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1

View File

@ -13,6 +13,7 @@ jobs:
name: Test on python ${{ matrix.python-version }} name: Test on python ${{ matrix.python-version }}
runs-on: macos-latest runs-on: macos-latest
strategy: strategy:
fail-fast: false
matrix: matrix:
python-version: python-version:
- "3.10" - "3.10"
@ -22,9 +23,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5 - uses: astral-sh/setup-uv@v6
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Run tests - name: Run tests
run: uv run --all-extras pytest -v run: uv run --all-extras --with 'git+https://github.com/ultralytics/CLIP.git' pytest -v

View File

@ -1,7 +1,6 @@
{ {
"recommendations": [ "recommendations": [
"ms-python.vscode-pylance", "ms-python.vscode-pylance",
"ms-python.black-formatter",
"kevinrose.vsc-python-indent", "kevinrose.vsc-python-indent",
"charliermarsh.ruff", "charliermarsh.ruff",
"shardulm94.trailing-spaces" "shardulm94.trailing-spaces"