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: Python CI | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| concurrency: | ||
| group: ${{ github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| test: | ||
| strategy: | ||
| matrix: | ||
| os: | ||
| - macos-26 | ||
| - macos-26-intel | ||
| - ubuntu-24.04 | ||
| # TODO: fails on ARM | ||
| # - ubuntu-24.04-arm | ||
| - windows-2025 | ||
| - windows-11-arm | ||
| python-version: | ||
| - '3.14' | ||
| include: | ||
| - os: macos-26 | ||
| display: MacOS 26 ARM | ||
| - os: macos-26-intel | ||
| display: MacOS 26 Intel | ||
| - os: ubuntu-24.04 | ||
| display: Ubuntu 24.04 Intel | ||
| - os: ubuntu-24.04-arm | ||
| # TODO: fails on ARM | ||
| # display: Ubuntu 24.04 ARM | ||
| # - os: windows-2025 | ||
| display: Windows 11 Intel | ||
| - os: windows-11-arm | ||
| display: Windows 11 (ARM) | ||
| fail-fast: false | ||
| name: ${{ matrix.display }} / Python ${{ matrix.python-version }} | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4.2.2 | ||
| - uses: actions/setup-python@v5.6.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: pip | ||
| - if: matrix.os == 'ubuntu-24.04' || matrix.os == 'ubuntu-24.04-arm' | ||
| uses: awalsh128/cache-apt-pkgs-action@v1.5.1 | ||
| with: | ||
| packages: libegl1 | ||
| version: 1.0 | ||
| execute_install_scripts: true | ||
| - if: matrix.os == 'ubuntu-24.04' || matrix.os == 'ubuntu-24.04-arm' | ||
| - name: Install dependencies | ||
| run: python -m pip install -r requirements.txt | ||
| - name: Check for formatting errors | ||
| run: python -m ruff format ./**/*.py | ||
| # TODO: resolve all linting errors | ||
| # - name: Check for linting errors | ||
| # run: python -m ruff check ./**/*.py | ||
| - name: Run test suite | ||
| run: python -m pytest | ||