mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
* chore: add ci job names This makes them easier to find in the Github UI. * chore: increase ci timeout
31 lines
816 B
YAML
31 lines
816 B
YAML
name: Build and lint API
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["preview"]
|
|
types: ["opened", "synchronize", "ready_for_review", "review_requested", "reopened"]
|
|
paths:
|
|
- "apps/api/**"
|
|
|
|
jobs:
|
|
lint-api:
|
|
name: Lint API
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
if: |
|
|
github.event.pull_request.draft == false &&
|
|
github.event.pull_request.requested_reviewers != null
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Install Pylint
|
|
run: python -m pip install ruff
|
|
- name: Install API Dependencies
|
|
run: cd apps/api && pip install -r requirements.txt
|
|
- name: Lint apps/api
|
|
run: ruff check --fix apps/api
|