Skip to content

Commit

Permalink
Merge pull request #16 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 99c1fc0 + d3e1a66 commit 0c0237d
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 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 @@ -12,7 +12,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:
name: Install Kipoi Utils
Expand Down Expand Up @@ -50,7 +50,7 @@ variables:
run_coveralls: &run_coveralls
run:
name: run coveralls
command:
command: |
source activate kipoi-dev
coveralls || true
store_test_results: &store_test_results
Expand Down Expand Up @@ -89,10 +89,12 @@ variables:
echo -e "username: $PYPI_USERNAME" >> ~/.pypirc
echo -e "password: $PYPI_PASSWORD" >> ~/.pypirc
jobs:

test-py310:
test:
parameters:
python-version:
type: string
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand All @@ -109,6 +111,10 @@ jobs:
- *store_test_results
- *store_test_artifacts
test-deploy-pypi:
parameters:
python-version:
type: string
default: "3.9"
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand Down Expand Up @@ -137,6 +143,10 @@ jobs:
python -m pip install --user --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple kipoi_conda --verbose
python -c "import kipoi_conda; print(kipoi_conda.__version__)"
productive-deploy-pypi:
parameters:
python-version:
type: string
default: "3.9"
docker:
- image: continuumio/miniconda3:latest
working_directory: ~/repo
Expand Down Expand Up @@ -169,24 +179,24 @@ jobs:
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
- add-pypi-deployment
- productive-deploy-pypi:
requires:
- test-py310
- test
filters:
branches:
only:
- master
- master

0 comments on commit 0c0237d

Please sign in to comment.