docs: specifies the offline new workaround #676
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: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12.3" | |
| architecture: x64 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install uv dependencies | |
| run: uv sync --all-extras | |
| - name: Check format | |
| run: | | |
| uv run poe format-src --check --verbose | |
| uv run poe format-tests --check --verbose | |
| uv run poe format-e2e --check --verbose | |
| uv run poe format-installer --check --verbose | |
| pylint: | |
| needs: black | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12.3" | |
| architecture: x64 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install uv dependencies | |
| run: uv sync --all-extras | |
| - name: Lint src | |
| run: uv run poe lint | |
| pytest: | |
| needs: pylint | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| arch: x64 | |
| - os: windows-latest | |
| arch: x64 | |
| - os: macos-15 | |
| arch: arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12.3" | |
| architecture: ${{ matrix.arch }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Install project and its dependencies | |
| run: uv sync --all-extras | |
| - name: Fetch firmware binaries | |
| run: uv sync --extra builder && uv run poe fetch-firmware | |
| - name: Run tests with coverage (Linux) | |
| if: ${{ runner.os == 'Linux' }} | |
| uses: coactions/setup-xvfb@v1.0.1 | |
| with: | |
| run: | | |
| uv add pytest-xvfb | |
| uv run poe coverage | |
| - name: Upload coverage reports to Codecov with GitHub Action | |
| uses: codecov/codecov-action@v7 | |
| if: ${{ runner.os == 'Linux' }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true | |
| - name: Run tests (MacOS) | |
| if: ${{ runner.os == 'macOS' }} | |
| run: uv run poe test-unit | |
| - name: Run tests (Windows) | |
| if: ${{ runner.os == 'Windows' }} | |
| env: | |
| KIVY_GL_BACKEND: "angle_sdl2" | |
| run: uv run poe test |