feat(tests): the kitchen sink -- every 6E rule no corpus character ta… #17
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: Tests | |
| # Runs the tests that need nothing but the code. | |
| # | |
| # Two release gates are not here and cannot be. Both need the commercial | |
| # character packs, and one of them needs HERO Designer's own engine; neither | |
| # the corpus nor that harness is redistributable. | |
| # | |
| # * PARITY (tests/test_oracle_fixtures.py) — every cost this engine computes, | |
| # against HD's. | |
| # * EXPORT FIDELITY (tests/test_export_fidelity.py) — every character written | |
| # back out, against the file it was read from. | |
| # | |
| # Both skip when their inputs are absent, which on CI is always. So a green run | |
| # here means the code-only tests pass; it is NOT evidence that costs match or | |
| # that a character survives a round trip. Those are run by the maintainer, | |
| # where tests/conftest.py fails the run on any skip at all once every input | |
| # resolves. See the README. | |
| # | |
| # Publishing is deliberately not wired up in this repository. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install | |
| run: | | |
| pip install -e . | |
| pip install pytest | |
| - name: Run the suite | |
| run: pytest -q --tb=short |