Skip to content

Fix formatting in Clone Graph problem description for improved readab… #230

Fix formatting in Clone Graph problem description for improved readab…

Fix formatting in Clone Graph problem description for improved readab… #230

Workflow file for this run

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