name: CI # Actions minutes cost money on a private repository, so: PyPy only, on pushes to # main and on pull requests, a newer run on the same ref cancels the older one, and # the CPython interpreters run only when started by hand (Actions tab, "Run # workflow"). on: push: branches: [main] pull_request: workflow_dispatch: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest timeout-minutes: 20 strategy: fail-fast: false matrix: # The floor is the newest Python PyPy supports (docs/handoff-brief.md). python-version: ${{ github.event_name == 'workflow_dispatch' && fromJSON('["3.11", "3.13", "3.14", "pypy3.11"]') || fromJSON('["pypy3.11"]') }} steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - run: python -m pip install --upgrade pip - run: python -m pip install -e ".[dev]" # Tests that need fetched references or the local romsets skip without them; # the MAME replays (-m slow) need local MAME logs and run off CI. - run: python -m pytest -q - run: python -m ruff check . - run: python -m ruff format --check .