mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
38 lines
747 B
YAML
38 lines
747 B
YAML
name: PyLint
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master]
|
|
paths: ['web/documentserver-example/python/**']
|
|
pull_request:
|
|
branches: [master, 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: |
|
|
make dev
|
|
|
|
- name: Lint Flake8
|
|
run: |
|
|
make lint
|
|
|
|
# TODO: Configure mypy
|
|
# - name: Types mypy
|
|
# run: |
|
|
# make types
|