name: CI on: push: branches: [main] pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: name: pytest (py${{ matrix.python-version }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.10", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip - run: pip install -e ".[dev]" - run: python -m pytest -q --no-cov tests/ gates: name: import contracts + strict core types runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip - run: pip install -e ".[dev]" - run: ruff check src tests scripts - run: ruff format --check src tests scripts - run: lint-imports - run: make type-check-core determinism: name: real tools are byte-reproducible runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" cache: pip - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends p7zip-full mame-tools squashfs-tools - run: pip install -e ".[dev]" - run: python -m pytest -q --no-cov tests/engine/test_real_tool_chains.py - run: romfarmer doctor --determinism