Skip to content

fix: remove AMBIGUOUS edges and filter hub nodes from clustering #147

fix: remove AMBIGUOUS edges and filter hub nodes from clustering

fix: remove AMBIGUOUS edges and filter hub nodes from clustering #147

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "hedwig_cg/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/ci.yml"
pull_request:
branches: [main]
paths:
- "hedwig_cg/**"
- "tests/**"
- "pyproject.toml"
- ".github/workflows/ci.yml"
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
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 -e ".[dev]"
- name: Lint with ruff
run: ruff check hedwig_cg/
- name: Run tests
run: pytest --tb=short -q
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Build package
run: |
pip install build
python -m build
- name: Verify wheel contents
run: |
pip install dist/*.whl
hedwig-cg --version
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/