Add simutils.CONTENTION_INTERVALS #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: z80doc-tests | |
| on: | |
| push: | |
| paths: | |
| - 'skoolkit/simulator.py' | |
| - 'skoolkit/cmiosimulator.py' | |
| - 'c/csimulator.c' | |
| workflow_dispatch: | |
| jobs: | |
| z80doc-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sim: [--sim, --cmio, --csim, --ccmio] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Download z80doc.tap | |
| run: | | |
| wget https://github.com/raxoft/z80test/releases/download/v1.2/z80test-1.2.zip | |
| unzip -j z80test-1.2.zip z80test-1.2/z80doc.tap | |
| - if: matrix.sim == '--csim' || matrix.sim == '--ccmio' | |
| name: Build csimulator | |
| run: python setup.py build_ext -b . | |
| - name: Run z80doc tests | |
| run: | | |
| export SKOOLKIT_HOME=$(pwd) | |
| tools/z80-test-simulator.py ${{ matrix.sim }} z80doc.tap |