补上 Linux 源码运行入口,修复几处路径问题 #128
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies (Qt offscreen) | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y -qq \ | |
| libegl1 libxkbcommon0 libxcb-cursor0 libxcb-icccm4 \ | |
| libxcb-image0 libxcb-keysyms1 libxcb-randr0 \ | |
| libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 \ | |
| libglib2.0-0 libportaudio2 portaudio19-dev | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip -q | |
| pip install -r requirements.txt -q | |
| pip install pytest pytest-qt pytest-mock pytest-env -q | |
| - name: Run tests | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| PYTHONIOENCODING: utf-8 | |
| run: | | |
| python -m pytest -v --tb=short --strict-markers -p no:warnings |