Skip to content

Commit

Permalink
Remove no-igraph tests
Browse files Browse the repository at this point in the history
igraph is now a required dependency
  • Loading branch information
clbarnes committed Jan 30, 2024
1 parent fb621cc commit 3e62343
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 59 deletions.
67 changes: 32 additions & 35 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,38 @@ jobs:
- "3.10"
- "3.11"
# - "3.12"
igraph: ["igraph", "no-igraph"]
steps:
# This cancels any such job that is still runnning
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux libraries
run: |
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 graphviz graphviz-dev
- name: Install dependencies
run: |
pip install --upgrade pip
pip install zstandard==0.16.0
pip install numpy
pip install flybrains --no-deps
pip install git+https://github.com/siavashk/pycpd@master
pip install k3d
pip install pyarrow
- name: Install navis
run: pip install -e .[dev,vispy-pyqt5,pathos,cloudvolume]
- run: pip install python-igraph
if: ${{ matrix.igraph == 'igraph' }}
- name: Report dependency versions
run: pip freeze -r requirements.txt
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux libraries
run: |
export NAVIS_HEADLESS=TRUE
pytest --verbose
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 graphviz graphviz-dev
- name: Install dependencies
run: |
pip install --upgrade pip
pip install zstandard==0.16.0
pip install numpy
pip install flybrains --no-deps
pip install git+https://github.com/siavashk/pycpd@master
pip install k3d
pip install pyarrow
- name: Install navis
run: pip install -e .[dev,vispy-pyqt5,pathos,cloudvolume]
- name: Report dependency versions
run: pip freeze -r requirements.txt
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
run: |
export NAVIS_HEADLESS=TRUE
pytest --verbose
21 changes: 0 additions & 21 deletions tests/common.py

This file was deleted.

3 changes: 0 additions & 3 deletions tests/test_neurons.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

import pytest

from .common import with_igraph


def test_deepcopy():
nrn = navis.core.BaseNeuron()
Expand All @@ -23,7 +21,6 @@ def test_from_swc_multi(swc_source_multi, parallel):
assert isinstance(n, navis.NeuronList)


@with_igraph
def test_from_gml():
n = navis.example_neurons(n=1, source='gml')
assert isinstance(n, navis.TreeNeuron)

0 comments on commit 3e62343

Please sign in to comment.