-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates one-off workflows (e.g. deploy) to use 3.10, and updates the test matrix otherwise. Also reformats some YAML, unfortunately. - Python 3.8 is not yet EOL but has been dropped by numpy releases since Apr 2023 - 3.11 was released Oct 2022 - 3.12 was released Oct 2023
- Loading branch information
Showing
4 changed files
with
106 additions
and
105 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
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 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
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/[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 | ||
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" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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: 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] | ||
- run: pip install python-igraph | ||
if: ${{ matrix.igraph == 'igraph' }} | ||
- name: Test | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
run: | | ||
export NAVIS_HEADLESS=TRUE | ||
pytest --verbose |