chore: update .github

This commit is contained in:
Dowon
2024-08-25 14:59:58 +09:00
parent 47cc6b9070
commit 67793f076c
3 changed files with 35 additions and 26 deletions

View File

@@ -26,8 +26,6 @@ body:
label: Steps to reproduce
description: |
Description of how we can reproduce this issue.
validations:
required: true
- type: textarea
attributes:
@@ -38,7 +36,7 @@ body:
attributes:
label: Console logs, from start to end.
description: |
The full console log of your terminal.
The FULL console log of your terminal.
placeholder: |
Python ...
Version: ...

View File

@@ -1,23 +0,0 @@
name: Empirical Implementation of JDD
on:
pull_request:
types:
- opened
jobs:
lint:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
![Imgur](https://i.imgur.com/ESow3BL.png)
LGTM
reactions: hooray

34
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Test on PR
on:
pull_request:
paths:
- "adetailer/**.py"
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: yezz123/setup-uv@v4
- name: Install dependencies
run: |
uv pip install --system ".[test]"
- name: Run tests
run: pytest -v