Skip to content

feat: add /dizz and /flick slash commands #64

feat: add /dizz and /flick slash commands

feat: add /dizz and /flick slash commands #64

Workflow file for this run

name: "✅ Linter"
on:
push:
branches:
- main
paths:
- '**.py'
pull_request:
branches:
- main
paths:
- '**.py'
env:
PROJECT_FOLDER: "qchat"
PYTHON_VERSION: 3.9
jobs:
lint-py:
name: Python 🐍
runs-on: ubuntu-latest
steps:
- name: Get source code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
cache: "pip"
cache-dependency-path: "requirements/development.txt"
python-version: ${{ env.PYTHON_VERSION }}
- name: Install project requirements
run: |
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements/development.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 ${{ env.PROJECT_FOLDER }} --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
flake8 ${{ env.PROJECT_FOLDER }} --count --exit-zero --statistics
qt6-check:
name: PyQt6 6️⃣
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/oslandia/qgis/pyqgis-4-checker/pyqgis-qt-checker:latest
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${{ github.workspace }}:/home/pyqgisdev/
options: --user root
steps:
- name: Get source code
uses: actions/checkout@v6
- name: Check PyQt5 to PyQt6 compatibility.
run: |
pyqt5_to_pyqt6.py --dry_run ${{ env.PROJECT_FOLDER }}/
pyqt5_to_pyqt6.py --logfile pyqt6_checker.log ${{ env.PROJECT_FOLDER }}/
- name: Upload script report if script fails
uses: actions/upload-artifact@v5
if: ${{ failure() }}
with:
name: pyqt6-checker-error-report
path: pyqt6_checker.log
retention-days: 7