Fix formatting in Clone Graph problem description for improved readab… #230
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: | |
| - "**" | |
| pull_request: | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "pip" | |
| - name: Show Python version | |
| run: python -V | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Pre-commit (lint + format + misc) | |
| run: | | |
| pre-commit run --all-files --show-diff-on-failure --color=always | |
| - name: Run tests | |
| run: python -m pytest -q | |
| - name: Upload coverage.xml | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| # Use a unique artifact name per job to avoid 409 Conflict across matrix entries | |
| name: coverage-xml-${{ matrix.os }}-py${{ matrix.python-version }} | |
| path: coverage.xml | |
| if-no-files-found: warn | |
| retention-days: 7 |