[actions] try comment bot
This commit is contained in:
33
.gitea/workflows/pr_check.yml
Normal file
33
.gitea/workflows/pr_check.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Pull-Request Vibe Check
|
||||
on:
|
||||
pull_request:
|
||||
types: [ opened, synchronize, reopened ]
|
||||
|
||||
jobs:
|
||||
ci-test:
|
||||
runs-on: node-current
|
||||
steps:
|
||||
- name: Setup PRBot
|
||||
uses: imgurbot12/prbot@v2
|
||||
with:
|
||||
username: ${{ secrets.prbot_username }}
|
||||
api_token: ${{ secrets.prbot_token }}
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up UV
|
||||
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
|
||||
|
||||
- run: |
|
||||
apt update
|
||||
apt install libpcsclite-dev python3-dev -y
|
||||
|
||||
- name: Install deps
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: Run ruff check
|
||||
run: uv run ruff check --output-format=github | prbot
|
||||
continue-on-error: true
|
||||
|
||||
- name: Post PR Feedback
|
||||
if: always()
|
||||
run: prbot commit
|
||||
@@ -18,25 +18,4 @@ jobs:
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: Run tests
|
||||
run: uv run pytest test
|
||||
|
||||
lint:
|
||||
runs-on: node-current
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Set up UV
|
||||
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
|
||||
|
||||
- run: |
|
||||
apt update
|
||||
apt install libpcsclite-dev python3-dev -y
|
||||
|
||||
- name: Install deps
|
||||
run: uv sync --locked --all-extras --dev
|
||||
|
||||
- name: Run ruff check
|
||||
run: uv run ruff check --output-format=github
|
||||
continue-on-error: true
|
||||
|
||||
- name: Run ruff format
|
||||
run: uv run ruff format --diff
|
||||
run: uv run pytest test
|
||||
Reference in New Issue
Block a user