Skip to content

Commit

Permalink
[MAINT] Add 3.10 unit test, compatibilities in setup.cfg (#818)
Browse files Browse the repository at this point in the history
* Add 3.10 unit test, compatibilities in info.py
  • Loading branch information
Joshua Teves authored Nov 22, 2022
1 parent 0879a94 commit d85dac3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,41 @@ jobs:
paths:
- src/coverage/.coverage.py39

unittest_310:
docker:
- image: continuumio/miniconda3
working_directory: /tmp/src/tedana
steps:
- checkout
- restore_cache:
key: conda-py310-v1-{{ checksum "setup.cfg" }}
- run:
name: Generate environment
command: |
apt-get update
apt-get install -yqq make
if [ ! -d /opt/conda/envs/tedana_py310 ]; then
conda create -yq -n tedana_py310 python=3.10
source activate tedana_py310
pip install .[tests]
fi
- run:
name: Running unit tests
command: |
source activate tedana_py310
make unittest
mkdir /tmp/src/coverage
mv /tmp/src/tedana/.coverage /tmp/src/coverage/.coverage.py310
- save_cache:
key: conda-py310-v1-{{ checksum "setup.cfg" }}
paths:
- /opt/conda/envs/tedana_py310
- persist_to_workspace:
root: /tmp
paths:
- src/coverage/.coverage.py310


style_check:
docker:
- image: continuumio/miniconda3
Expand Down Expand Up @@ -318,12 +353,14 @@ workflows:
- makeenv_37
- unittest_38
- unittest_39
- unittest_310
- merge_coverage:
requires:
- unittest_36
- unittest_37
- unittest_38
- unittest_39
- unittest_310
- three-echo
- four-echo
- five-echo
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
python_requires = >= 3.6
Expand Down

0 comments on commit d85dac3

Please sign in to comment.