Translations update from Hosted Weblate #97
Workflow file for this run
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: Tests | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: ['master', 'next'] | |
| paths-ignore: ['**.md', '**.po', '**.mo', '**.pot'] | |
| jobs: | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| name: ${{ matrix.name }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Legacy configs | |
| # pytest 8.3.5 is the last version without a mandatory requirement for pygments | |
| - {name: '310-pyqt5-nosyntax', os: ubuntu-22.04, py: '3.10', qt: pyqt5, piptweak: 'pip install pytest==8.3.5 && pip uninstall -y pygments', downgrade-git: true} | |
| - {name: '310-pyqt5-outdated', os: ubuntu-22.04, py: '3.10', qt: pyqt5, piptweak: 'pip install pygit2==1.14.1 pygments==2.12', downgrade-git: true} | |
| # Semi-legacy configs | |
| - {name: '311-pyqt6', os: ubuntu-latest, py: '3.11', qt: pyqt6, downgrade-git: true} | |
| - {name: '312-pyqt6', os: ubuntu-latest, py: '3.12', qt: pyqt6, downgrade-git: true} | |
| # Up-to-date configs | |
| - {name: '313-pyqt6', os: ubuntu-latest, py: '3.13', qt: pyqt6} | |
| - {name: '313-pyside6', os: ubuntu-latest, py: '3.13', qt: pyside6, coverage: true} | |
| - {name: '313-pyqt6-mac', os: macos-latest, py: '3.13', qt: pyqt6} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Qt dependencies | |
| if: ${{ runner.os == 'Linux' }} | |
| run: | | |
| sudo apt update | |
| sudo apt install ${{ matrix.qt == 'pyqt5' && 'libqt5gui5' || 'libqt6gui6' }} | |
| - name: Downgrade git | |
| if: ${{ matrix.downgrade-git }} | |
| run: | | |
| sudo apt remove git git-man | |
| sudo apt install git | |
| - name: Git version | |
| run: | | |
| which git | |
| git version | |
| which gpg | |
| gpg --version | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.py }} | |
| cache: 'pip' | |
| - name: Pip dependencies | |
| run: | | |
| pip install -e .[${{ matrix.qt }},pygments,test] | |
| ${{ matrix.piptweak }} | |
| - run: ruff check | |
| - name: Unit tests | |
| run: ./test.py --qt=${{ matrix.qt }} --with-network ${{ matrix.coverage && '--cov' }} | |
| - name: Upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ matrix.coverage }} | |
| with: | |
| path: coverage_html_report | |
| name: coverage_${{ matrix.name }}_${{ github.sha }} |