Skip to content

Commit

Permalink
CI: Test whether installation works as described in documentation. (#586
Browse files Browse the repository at this point in the history
)
  • Loading branch information
csadorf authored Nov 17, 2021
1 parent 0707330 commit d628c39
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,88 @@ jobs:
docker:
- image: cimg/python:3.6

test-install-pip-python-36: &test-install-pip
docker:
- image: cimg/python:3.6

steps:

- run:
name: install-with-pip
command: |
pip install --progress-bar off signac signac-flow
- run: &smoke-test
name: smoke-test
command: |
signac --version
python -c 'import signac'
flow --version
python -c 'import flow'
test-install-pip-python-37:
<<: *test-install-pip
docker:
- image: cimg/python:3.7

test-install-pip-python-38:
<<: *test-install-pip
docker:
- image: cimg/python:3.8

test-install-pip-python-39:
<<: *test-install-pip
docker:
- image: cimg/python:3.9

test-install-pip-python-310:
<<: *test-install-pip
docker:
- image: cimg/python:3.10

test-install-conda: &test-install-conda
environment:
# The default job does not specify the version, just like the
# instructions.
PYTHON_DEP: ""
docker:
- image: conda/miniconda3:latest

steps:

- run:
name: install-with-conda
command: |
conda install -c conda-forge signac signac-flow ${PYTHON_DEP} --yes
- run:
<<: *smoke-test

test-install-conda-python-36:
<<: *test-install-conda
environment:
PYTHON_DEP: "python=3.6"

test-install-conda-python-37:
<<: *test-install-conda
environment:
PYTHON_DEP: "python=3.7"

test-install-conda-python-38:
<<: *test-install-conda
environment:
PYTHON_DEP: "python=3.8"

test-install-conda-python-39:
<<: *test-install-conda
environment:
PYTHON_DEP: "python=3.9"

test-install-conda-python-310:
<<: *test-install-conda
environment:
PYTHON_DEP: "python=3.10"

check-metadata:
docker:
- image: cimg/python:3.10
Expand Down Expand Up @@ -206,6 +288,17 @@ workflows:
jobs:
- linux-python-310-signac-latest
- linux-python-310-signac-next
- test-install-pip-python-36
- test-install-pip-python-37
- test-install-pip-python-38
- test-install-pip-python-39
- test-install-pip-python-310
- test-install-conda
- test-install-conda-python-36
- test-install-conda-python-37
- test-install-conda-python-38
- test-install-conda-python-39
- test-install-conda-python-310
deploy:
jobs:
- deploy-pypi:
Expand Down

0 comments on commit d628c39

Please sign in to comment.