Skip to content

Commit

Permalink
CI: Drop py38, add py311, 312
Browse files Browse the repository at this point in the history
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
clbarnes committed Nov 3, 2023
1 parent f67e659 commit 56f6f7f
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 105 deletions.
49 changes: 24 additions & 25 deletions .github/workflows/notebooktest-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
48 changes: 24 additions & 24 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
47 changes: 24 additions & 23 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
67 changes: 34 additions & 33 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 56f6f7f

Please sign in to comment.