Krita 6.x / Qt6 #1408
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint, Typecheck and Test | |
| on: [pull_request] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Dependencies | |
| run: pip install -r requirements.txt | |
| - name: Typecheck | |
| uses: jakebailey/pyright-action@v1 | |
| with: | |
| pylance-version: latest-release | |
| - name: Format | |
| if: ${{ !cancelled() }} | |
| run: ruff format --diff | |
| - name: Lint | |
| if: ${{ !cancelled() }} | |
| run: ruff check --output-format=github | |
| test: | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-22.04, macos-14, windows-2022] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| steps: | |
| # PyQt6.QtGui import requires libEGL.so.1 (even with QT_QPA_PLATFORM=offscreen) | |
| - name: Packages | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libegl1 libgl1 libxkbcommon-x11-0 | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Free Disk Space (ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| df -h | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /opt/hostedtoolcache/CodeQL | |
| sudo docker image prune --all --force | |
| df -h | |
| - name: Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Dependencies | |
| run: pip install -r requirements.txt | |
| - name: Cache models | |
| uses: actions/cache@v3 | |
| with: | |
| path: scripts/downloads | |
| key: models-v4 | |
| - name: Download models | |
| run: python scripts/download_models.py --minimal scripts/downloads | |
| - name: Test installer | |
| run: python -m pytest tests/test_server.py -vs --test-install | |
| - name: Test | |
| run: python -m pytest tests -vs --ci | |