Skip to content

Commit

Permalink
Merge pull request #41 from kipoi/add-more-python-versions
Browse files Browse the repository at this point in the history
 Adding a matrix to circle config so that tests for python versions in future can be added easily
  • Loading branch information
haimasree committed Apr 23, 2022
2 parents cb0d472 + 00ae9f4 commit 8452370
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2
version: 2.1

variables:
update_conda: &update_conda
Expand All @@ -9,7 +9,7 @@ variables:
create_conda_env: &create_conda_env
run:
name: create conda env
command: conda create -n kipoi-dev python=3.10
command: conda create -n kipoi-dev python=<< parameters.python-version >>

install_kipoi_utils: &install_kipoi_utils
run:
Expand Down Expand Up @@ -69,7 +69,10 @@ variables:
jobs:

test-py310:
test:
parameters:
python-version:
type: string
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand All @@ -84,6 +87,10 @@ jobs:
- *store_test_artifacts

test-deploy-pypi:
parameters:
python-version:
type: string
default: "3.9"
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand All @@ -110,6 +117,10 @@ jobs:
python -c "import kipoi_utils; print(kipoi_utils.__version__)"
productive-deploy-pypi:
parameters:
python-version:
type: string
default: "3.9"
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand Down Expand Up @@ -138,26 +149,25 @@ jobs:
python -c "import kipoi_utils; print(kipoi_utils.__version__)"
workflows:
version: 2
version: 2.1

test:
jobs:
- test-py310
test-n-deploy:
jobs:
- test-py310
- test:
matrix:
parameters:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
- test-deploy-pypi:
requires:
- test-py310
- test
filters:
branches:
only:
- add-pypi-deployment
- productive-deploy-pypi:
requires:
- test-py310
- test
filters:
branches:
only:
- master

Empty file added tests/__init__.py
Empty file.

0 comments on commit 8452370

Please sign in to comment.