mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 11:11:21 +00:00
chore: update tools
This commit is contained in:
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user