fix: should keep namespace structure of toc & opf #159
Workflow file for this run
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: build | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Setup Poetry | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: "2.1.3" | |
| - name: Configure Poetry | |
| run: | | |
| poetry config virtualenvs.create true | |
| poetry config virtualenvs.in-project true | |
| - name: Install dependencies | |
| run: | | |
| poetry install --with dev | |
| - name: Run pyright checking | |
| run: | | |
| poetry run pyright epub_translator tests | |
| - name: Run linting | |
| run: | | |
| poetry run pylint ./epub_translator/**/*.py ./tests/**/*.py | |
| - name: Run tests | |
| run: | | |
| poetry run python test.py |