fix: make the limit/audit usage-error tests hermetic without epubcheck #120
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.14" | |
| # html5lib is the project's declared optional `reserialize` extra (core stays | |
| # stdlib-only); installing it here lets CI exercise the --reserialize tests | |
| # instead of skipping them. ruff is a dev-only linter. | |
| - run: pip install . html5lib ruff==0.16.2 | |
| # The rule set lives in pyproject.toml, so these mean the same thing locally. | |
| # Checking `.` rather than named directories keeps a new top-level script from | |
| # silently escaping lint. | |
| - run: ruff check . | |
| - run: ruff format --check . | |
| - run: PYTHONPATH=src python -m unittest discover -s tests |