Skip to content

docs: sharpen SoftwareCenter discovery positioning #11

docs: sharpen SoftwareCenter discovery positioning

docs: sharpen SoftwareCenter discovery positioning #11

Workflow file for this run

name: SoftwareCenter smoke tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
permissions:
contents: read
jobs:
smoke:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
env:
QT_QPA_PLATFORM: offscreen
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install Qt runtime libraries
run: |
sudo apt-get update
sudo apt-get install -y libegl1 libgl1 libxkbcommon0 libdbus-1-3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt pytest
- name: Run regression tests
run: python -m pytest -q
- name: Compile Python modules
run: python -m compileall -q SoftwareCenter.py manage_translations.py translator.py
- name: Validate JSON metadata
run: |
python -m json.tool locales/translations.json
python -m json.tool store_package.json
linux-platform-smoke:
runs-on: ubuntu-latest
env:
QT_QPA_PLATFORM: offscreen
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Qt runtime libraries
run: |
sudo apt-get update
sudo apt-get install -y libegl1 libgl1 libxkbcommon0 libdbus-1-3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run Linux platform smoke
run: python tests/linux_platform_smoke.py
macos-platform-smoke:
runs-on: macos-latest
env:
QT_QPA_PLATFORM: offscreen
PYTHONIOENCODING: utf-8
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run macOS platform smoke
run: python tests/macos_platform_smoke.py