mirror of https://github.com/Bing-su/adetailer.git
chore(ci): refactor gitHub actions workflows
parent
18e111322c
commit
47e3a572e4
|
|
@ -7,30 +7,7 @@ on:
|
|||
jobs:
|
||||
test:
|
||||
name: test
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- uses: yezz123/setup-uv@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv pip install --system ".[test]"
|
||||
|
||||
- name: Run tests
|
||||
run: pytest -v
|
||||
uses: ./.github/workflows/test.yml
|
||||
|
||||
build:
|
||||
name: build
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ on:
|
|||
pull_request:
|
||||
paths:
|
||||
- "adetailer/**.py"
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
@ -24,7 +25,7 @@ jobs:
|
|||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- uses: yezz123/setup-uv@v4
|
||||
- uses: astral-sh/setup-uv@v3
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue