mirror of https://github.com/Bing-su/adetailer.git
chore: update tools
parent
941b7c7dfb
commit
0ce0a2183b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue