Skip to content

Commit

Permalink
Merge pull request edickie#158 from DESm1th/py39
Browse files Browse the repository at this point in the history
[ENH] Run test suite against python3.9
  • Loading branch information
edickie authored Jul 6, 2021
2 parents a6ac770 + e8bbe69 commit ce1876b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
<<: *test-template
docker:
- image: tigrlab/ciftify_ci:py3.8-latest
test-py39:
<<: *test-template
docker:
- image: tigrlab/ciftify_ci:py3.9-latest
test_and_deploy_docker:
docker:
- image: docker:19.03-rc-git
Expand Down Expand Up @@ -182,12 +186,17 @@ workflows:
filters:
tags:
only: /.*/
- test-py39:
filters:
tags:
only: /.*/
- test_and_deploy_docker:
requires:
- test-py35
- test-py36
- test-py37
- test-py38
- test-py39
filters:
branches:
ignore: /.*/
Expand All @@ -199,6 +208,7 @@ workflows:
- test-py36
- test-py37
- test-py38
- test-py39
filters:
branches:
ignore: /.*/
Expand Down
42 changes: 42 additions & 0 deletions .circleci/images/py3.9-20.04-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM ubuntu:focal-20200720

ARG DEBIAN_FRONTEND=noninteractive

# Prepare environment
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
gnupg \
curl \
pkg-config \
gcc \
g++ \
libfreetype-dev \
libpng-dev \
libopenblas-dev \
liblapack-dev \
libjpeg-dev \
gfortran \
git \
python3.9 \
python3.9-venv \
python3-setuptools \
python3-pip

# Get connectome-workbench
RUN wget -O- http://neuro.debian.net/lists/focal.us-ca.full >> /etc/apt/sources.list.d/neurodebian.sources.list && \
apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 && \
apt update && \
apt install -y connectome-workbench=1.4.2-1build1

# Get bids-validator
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get install -y nodejs && \
npm install -g bids-validator

# Ensure python3.9 is the default python3 + update pip
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && \
pip install --upgrade pip

CMD ["/bin/bash"]
4 changes: 2 additions & 2 deletions cifti_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ docopt>=0.6.0
nibabel>=2.3.3
pyyaml>=4.2b1
seaborn>=0.9.0
pillow==6.2.0
pillow>=6.2.0
nilearn>=0.5.0
numpy>=1.15.4
scipy>=1.1.0
matplotlib==2.2.2
matplotlib>=2.2.2
pandas>=0.23.4
pybids>=0.7.0,<0.8.0a0
pytest

0 comments on commit ce1876b

Please sign in to comment.