allow calculating query->target distances (requires PR merge in CAJAL) #919
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.9" | |
- "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/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Linux libraries | |
run: | | |
sudo apt-get update -y -qq | |
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 \ | |
mesa-vulkan-drivers | |
- 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 pyarrow | |
- name: Install navis | |
run: pip install -e .[dev,all] | |
# - run: pip install python-igraph | |
# if: ${{ matrix.igraph == 'igraph' }} | |
- name: Report dependency versions | |
run: pip freeze -r requirements.txt | |
- name: Test | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: | | |
export NAVIS_HEADLESS=TRUE | |
pytest --verbose |