Skip to content

Graph refactoring

Graph refactoring #12

Workflow file for this run

name: CI
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
permissions:
contents: read
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Lint (ruff)
run: |
ruff check .
- name: Type check (mypy)
run: |
mypy .
- name: Run tests with coverage
run: |
coverage run -m pytest --junitxml=test-results/pytest-results.xml
coverage report
- name: Publish test report
if: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
uses: dorny/test-reporter@v1
with:
name: Pytest Results (Python ${{ matrix.python-version }})
path: test-results/pytest-results.xml
reporter: java-junit