name: CI on: push: branches: - master - dev pull_request: branches: - master - dev workflow_dispatch: permissions: contents: read concurrency: group: ci-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: Python ${{ matrix.python-version }} runs-on: ubuntu-latest timeout-minutes: 30 strategy: fail-fast: false matrix: python-version: - "3.10" - "3.11" - "3.12" - "3.13" steps: - name: Check out repository uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 - name: Install uv and Python uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 with: python-version: ${{ matrix.python-version }} enable-cache: true cache-python: true - name: Install locked dependencies run: uv sync --locked --group dev - name: Verify headless rendering support run: command -v xvfb-run - name: Compile package run: uv run python -m compileall -q src/simplecadapi - name: Run tests run: xvfb-run --auto-servernum uv run pytest test tests -q