Skip to content

List phyloframe as tree provider #402

List phyloframe as tree provider

List phyloframe as tree provider #402

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
[push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --group test
- name: Run pytest
run: uv run pytest --cov-report term-missing --cov=iplotx tests
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
fail-on-error: false
- name: Run flake8
run: uv run flake8 iplotx --count --exit-zero --max-complexity=20 --max-line-length=127 --statistics
build_graph_tool:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: false
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: gt
miniforge-version: latest
channels: conda-forge
conda-remove-defaults: true
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Conda list
shell: bash -el {0}
run: conda list
- name: Install graph-tool
shell: bash -el {0}
run: conda install -c conda-forge graph-tool
- name: Install pip
shell: bash -el {0}
run: conda install -c conda-forge pip
- name: Upgrade pip to >= 25.1 (which has dependency groups)
shell: bash -el {0}
run: pip install --upgrade pip
- name: Install deps and package
shell: bash -el {0}
run: pip install --group test .
- name: Check pytest
shell: bash -el {0}
run: which pytest
- name: Run pytest (graph-tool)
shell: bash -el {0}
run: pytest tests/test_graph_tool.py