Files
gajim-plugins/.gitlab-ci.yml
Philipp Hörist 91a5e4c9e6 Add pyright to CI
2026-01-02 21:53:11 +01:00

62 lines
1.1 KiB
YAML

image: plugins-master:latest
stages:
- test
- deploy
deploy-plugins:
stage: deploy
script:
- python3 .ci/deploy.py
test-pyright:
image: gajim-test
stage: test
allow_failure: true
rules:
- changes:
- "**/*.py"
script:
- pip install git+https://dev.gajim.org/gajim/python-nbxmpp.git
- pip install git+https://dev.gajim.org/gajim/gajim.git
- pip install pygobject-stubs==2.16.0
- pyright --version
- pyright
interruptible: true
test-isort:
image: gajim-test
stage: test
rules:
- changes:
- "**/*.py"
script:
- isort --version
- isort --check .
interruptible: true
test-ruff-lint:
image: gajim-test
stage: test
rules:
- changes:
- "**/*.py"
script:
- ruff --version
- ruff check --output-format=gitlab --output-file=code-quality-report.json
artifacts:
reports:
codequality: $CI_PROJECT_DIR/code-quality-report.json
interruptible: true
test-ruff-format:
image: gajim-test
stage: test
rules:
- changes:
- "**/*.py"
script:
- ruff --version
- ruff format --diff
interruptible: true