diff --git a/.github/workflows/notebooktest-package.yml b/.github/workflows/notebooktest-package.yml index 69cbb31d..f19e27d9 100644 --- a/.github/workflows/notebooktest-package.yml +++ b/.github/workflows/notebooktest-package.yml @@ -4,32 +4,31 @@ on: [push] jobs: build: - runs-on: ubuntu-latest steps: # This cancels any such job that is still running - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 - with: - access_token: ${{ github.token }} - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install graphviz - run: | - sudo apt-get install -y graphviz graphviz-dev - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pathos pygraphviz neuron cloud-volume k3d scikit-image open3d - python -m pip install -e .[test-notebook] - - name: Run notebooks - env: - NEUPRINT_APPLICATION_CREDENTIALS: ${{ secrets.neuprint }} - INSECT_BRAIN_DB_USER: ${{ secrets.insect_brain_db_user }} - INSECT_BRAIN_DB_PASSWORD: ${{ secrets.insect_brain_db_password }} - run: | - python tests/test_notebooks.py + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v1 + with: + python-version: 3.10 + - name: Install graphviz + run: | + sudo apt-get install -y graphviz graphviz-dev + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pathos pygraphviz neuron cloud-volume k3d scikit-image open3d + python -m pip install -e .[test-notebook] + - name: Run notebooks + env: + NEUPRINT_APPLICATION_CREDENTIALS: ${{ secrets.neuprint }} + INSECT_BRAIN_DB_USER: ${{ secrets.insect_brain_db_user }} + INSECT_BRAIN_DB_PASSWORD: ${{ secrets.insect_brain_db_password }} + run: | + python tests/test_notebooks.py diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 64b4bc20..e67ce5f9 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -10,27 +10,27 @@ jobs: name: Build and publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install wheel and setuptools - run: >- - python -m - pip install - wheel - setuptools - extreqs - --user - --upgrade - - name: Build a binary wheel and a source tarball - run: >- - python3 - setup.py - sdist - bdist_wheel - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@master - with: - password: ${{ secrets.pypi_password }} + - uses: actions/checkout@master + - name: Set up Python 3.10 + uses: actions/setup-python@v1 + with: + python-version: 3.10 + - name: Install wheel and setuptools + run: >- + python -m + pip install + wheel + setuptools + extreqs + --user + --upgrade + - name: Build a binary wheel and a source tarball + run: >- + python3 + setup.py + sdist + bdist_wheel + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.pypi_password }} diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml index f8408172..f9390c1d 100644 --- a/.github/workflows/test-install.yml +++ b/.github/workflows/test-install.yml @@ -16,31 +16,32 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] python-version: - - "3.8" - "3.9" - "3.10" + - "3.11" + - "3.12" runs-on: ${{ matrix.os }} steps: # This cancels any such job that is still runnning - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 - 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 - if: ${{ matrix.os == 'ubuntu-latest' }} - - name: Install dependencies - run: | - pip install --upgrade pip wheel - - name: Install navis from Github - run: pip install git+https://github.com/navis-org/navis@master - - name: Test import - run: python3 -c "import navis" + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.6.0 + 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 + if: ${{ matrix.os == 'ubuntu-latest' }} + - name: Install dependencies + run: | + pip install --upgrade pip wheel + - name: Install navis from Github + run: pip install git+https://github.com/navis-org/navis@master + - name: Test import + run: python3 -c "import navis" diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index e1f190b5..b8cb3026 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -8,42 +8,43 @@ jobs: strategy: matrix: python-version: - - "3.8" - "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.6.0 - 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: Test - uses: GabrielBB/xvfb-action@v1 - with: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.6.0 + 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] + - run: pip install python-igraph + if: ${{ matrix.igraph == 'igraph' }} + - name: Test + uses: GabrielBB/xvfb-action@v1 + with: + run: | + export NAVIS_HEADLESS=TRUE + pytest --verbose