# SPDX-License-Identifier: MIT name: CI # Private repository: Actions minutes cost money, so PyPy only (the interpreter # the board is certified on), main and pull requests only, superseded runs # cancelled. The detector lockstep runs by hand (docs/validation.md). on: push: branches: [main] pull_request: concurrency: group: ci-${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "pypy3.11" - run: python -m pip install -e ".[dev]" - run: python -m ruff check . - run: python -m ruff format --check . # The die traces the TIA is judged by: tia-fpga's console-wired set at # the pin in scripts/pinned_repos.json (nothing fetched is committed). - name: Fetch die traces run: | git clone --quiet --filter=blob:none --no-checkout \ https://github.com/lrrosa/tia-fpga reference/src/tia-fpga git -C reference/src/tia-fpga sparse-checkout set sim/traces/phi2 git -C reference/src/tia-fpga checkout --quiet 7bcd84ebf4715e6a1538d4c6c6b379594b03ba70 - run: python -m pytest -q