mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-02-06 16:30:06 +00:00
36 lines
687 B
YAML
36 lines
687 B
YAML
name: Test on PR
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "adetailer/**.py"
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test on python ${{ matrix.python-version }}
|
|
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: astral-sh/setup-uv@v3
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
uv pip install --system ".[test]"
|
|
|
|
- name: Run tests
|
|
run: pytest -v
|