name: CI on: push: pull_request: jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.12", "3.13", "3.14", "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]" # The reference this core must match, at the commit it was forked from; # validation/lockstep.py and tests/test_lockstep.py run it side by side. - run: python -m pip install "z80-python @ git+https://github.com/alewman/z80-python@b59c80b88086299f277d4d21d82a09e112acdaaf" - run: python -m pytest -q - run: python -m ruff check . - run: python -m ruff format --check . - run: python examples/minimal_z80_host.py # The one external oracle small enough to run on every push: a ~2 MB tarball # and 1,356 single-instruction cases. The heavier gates -- SingleStepTests, # z80test, ZEXDOC/ZEXALL -- run in oracles.yml. fuse-oracle: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: python -m pip install --upgrade pip - run: python -m pip install -e ".[dev]" - run: python scripts/fetch_fuse_tests.py - run: python -m pytest tests/test_fuse_suite.py -q package: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - run: python -m pip install --upgrade build - run: python -m build --wheel --sdist - run: python -m pip install --force-reinstall dist/*.whl - name: Smoke-test installed public API working-directory: ${{ runner.temp }} run: python ${{ github.workspace }}/scripts/smoke_installed_package.py