chore(deps): update dependency isort to v8 #38
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: python build | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - mainline | |
| paths: | |
| - src/** | |
| - tests/** | |
| - .github/workflows/python-tests.yml | |
| - pyproject.toml | |
| - poetry.lock | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13", "3.14"] | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'poetry' | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Build package | |
| run: poetry build | |
| - name: Check code formatting with black | |
| run: poetry run black --check --diff src/ tests/ | |
| - name: Check import sorting with isort | |
| run: poetry run isort --check-only --diff src/ tests/ | |
| - name: Run tests with coverage | |
| run: poetry run pytest | |
| env: | |
| COVERAGE_FILE: .coverage.${{ matrix.python-version }} | |
| - name: Store coverage file | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: coverage-${{ matrix.python-version }} | |
| path: .coverage.${{ matrix.python-version }} | |
| include-hidden-files: true | |
| coverage: | |
| name: coverage | |
| runs-on: ubuntu-latest | |
| needs: test | |
| permissions: | |
| pull-requests: write | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Download coverage artifacts | |
| uses: actions/download-artifact@v7 | |
| with: | |
| pattern: coverage-* | |
| merge-multiple: true | |
| - name: Coverage comment | |
| id: coverage_comment | |
| uses: py-cov-action/python-coverage-comment-action@v3 | |
| with: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| MERGE_COVERAGE_FILES: true |