Skip to content

Commit

Permalink
CI: Drop py38
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
  • Loading branch information
clbarnes committed Nov 14, 2023
1 parent f67e659 commit 445fe9b
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 107 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 }}
45 changes: 22 additions & 23 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,30 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version:
- "3.8"
- "3.9"
- "3.10"
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"
65 changes: 32 additions & 33 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,41 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
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
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,14 @@
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',

'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
install_requires=install_requires,
extras_require=dict(extras_require),
tests_require=extras_require["dev"],
# CI runs against >=3.8
python_requires='>=3.8',
python_requires='>=3.9',
zip_safe=False,

include_package_data=True
Expand Down

0 comments on commit 445fe9b

Please sign in to comment.