Skip to content

Commit

Permalink
Update circle ci config with dev dependencies and multiple python ver…
Browse files Browse the repository at this point in the history
…sion tests
  • Loading branch information
hsahovic committed Oct 31, 2019
1 parent b0b7802 commit 1c53678
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5
workflows:
version: 2
test:
jobs:
- test-3.5
- test-3.6
- test-3.7
jobs:
build:
test-3.5: &test-template
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.7.4
- image: circleci/python:3.5

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -36,6 +43,13 @@ jobs:
. venv/bin/activate
pip install -r requirements.txt
- run:
name: install dev dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements-dev.txt
- save_cache:
paths:
- ./venv
Expand Down Expand Up @@ -78,4 +92,12 @@ jobs:
coverage xml
- codecov/upload:
file: coverage.xml
file: coverage.xml
test-3.6:
<<: *test-template
docker:
- image: circleci/python:3.6
test-3.7:
<<: *test-template
docker:
- image: circleci/python:3.7

0 comments on commit 1c53678

Please sign in to comment.