diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 8093934..70a7b32 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -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: ... diff --git a/.github/workflows/lgtm.yml b/.github/workflows/lgtm.yml deleted file mode 100644 index 08c0fad..0000000 --- a/.github/workflows/lgtm.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f345788 --- /dev/null +++ b/.github/workflows/test.yml @@ -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