39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
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
|
|
env:
|
|
RUST_LOG: debug
|
|
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: Do Something With Errors
|
|
run: |
|
|
echo "::error title=ruff (E722),file=/workspace/malobeo/gatekeeper/app/services/scanner.py,line=133,col=13,endLine=133,endColumn=19::app/services/scanner.py:133:13: E722 Do not use bare except" | prbot
|
|
|
|
- name: Post PR Feedback
|
|
if: always()
|
|
run: prbot commit
|
|
env:
|
|
RUST_LOG: debug
|