mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
35 lines
728 B
YAML
35 lines
728 B
YAML
name: PyLint
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master, main]
|
|
paths: ['web/documentserver-example/python/**']
|
|
pull_request:
|
|
branches: [master, main, develop]
|
|
paths: ['web/documentserver-example/python/**']
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./web/documentserver-example/python
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
make prod
|
|
make dev
|
|
|
|
- name: Lint Flake8
|
|
run: |
|
|
make lint
|