fix(deduplication): order merge clusters before mutation [release] #32
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
| # SPDX-FileCopyrightText: 2026 Arcangelo Massari <arcangelo.massari@unibo.it> | |
| # | |
| # SPDX-License-Identifier: ISC | |
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --locked --dev --python ${{ matrix.python-version }} | |
| - name: Run tests with coverage | |
| if: matrix.python-version == '3.13' | |
| run: | | |
| uv run --python ${{ matrix.python-version }} coverage run -m pytest | |
| uv run --python ${{ matrix.python-version }} coverage xml | |
| uv run --python ${{ matrix.python-version }} coverage html -d htmlcov | |
| uv run --python ${{ matrix.python-version }} coverage report | |
| - name: Generate coverage badge | |
| if: matrix.python-version == '3.13' | |
| run: uv run --python ${{ matrix.python-version }} genbadge coverage -i coverage.xml -o coverage-badge.svg | |
| - name: Upload coverage report | |
| if: matrix.python-version == '3.13' && github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: coverage-report | |
| path: htmlcov | |
| - name: Upload coverage badge | |
| if: matrix.python-version == '3.13' && github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: coverage-badge | |
| path: coverage-badge.svg | |
| - name: Run tests | |
| if: matrix.python-version != '3.13' | |
| run: uv run --python ${{ matrix.python-version }} pytest |