chore: update tools

pull/753/head^2
Dowon 2025-02-22 10:01:28 +09:00
parent 941b7c7dfb
commit 0ce0a2183b
No known key found for this signature in database
GPG Key ID: 9CCE5CDC08E34AD0
3 changed files with 5 additions and 13 deletions

View File

@ -22,16 +22,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} - uses: astral-sh/setup-uv@v5
uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: |
uv pip install --system ".[test]"
- name: Run tests - name: Run tests
run: pytest -v run: uv run --all-extras pytest -v

View File

@ -24,7 +24,7 @@ repos:
- id: prettier - id: prettier
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6 rev: v0.9.7
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]

View File

@ -10,13 +10,12 @@ tasks:
cmds: cmds:
- echo "$PYTHON" - echo "$PYTHON"
- echo "$WEBUI" - echo "$WEBUI"
- echo "$UV_PYTHON"
silent: true silent: true
launch: launch:
dir: "{{.WEBUI}}" dir: "{{.WEBUI}}"
cmds: cmds:
- "{{.PYTHON}} launch.py --xformers --api" - "{{.PYTHON}} launch.py --xformers --api {{ .CLI_ARGS }}"
silent: true silent: true
lint: lint:
@ -29,4 +28,4 @@ tasks:
update-torch: update-torch:
cmds: cmds:
- "{{.PYTHON}} -m uv pip install -U torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124" - "{{.PYTHON}} -m uv pip install -U torch torchvision torchaudio xformers --extra-index-url https://download.pytorch.org/whl/cu126"