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:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: |
uv pip install --system ".[test]"
- name: Run tests
run: pytest -v
run: uv run --all-extras pytest -v

View File

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

View File

@ -10,13 +10,12 @@ tasks:
cmds:
- echo "$PYTHON"
- echo "$WEBUI"
- echo "$UV_PYTHON"
silent: true
launch:
dir: "{{.WEBUI}}"
cmds:
- "{{.PYTHON}} launch.py --xformers --api"
- "{{.PYTHON}} launch.py --xformers --api {{ .CLI_ARGS }}"
silent: true
lint:
@ -29,4 +28,4 @@ tasks:
update-torch:
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"