Skip to content

Commit

Permalink
cci caching
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrien committed Apr 5, 2021
1 parent 039950d commit 2e7fa73
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ orbs:
python: dialogue/[email protected]
utils: dialogue/[email protected]


workflows:
ci:
jobs:
Expand Down Expand Up @@ -58,19 +57,23 @@ jobs:
description: |
Specify which version of sqlalchemy to run the tests against
executor: python-postgres
working_directory: ~/project/.
working_directory: ~/project
steps:
- base/setup
- python/setup
- run:
name: "install tox"
command: |
poetry run pip install -U tox
- run:
name: "run tox using sqlalchemy <<parameters.sqlalchemy_version>>.*"
command: |
poetry run tox -e sqlalchemy<<parameters.sqlalchemy_version>>
- utils/with_cache:
key: '<<parameters.sqlalchemy_version>>-{{ checksum "pyproject.toml" }}-{{ checksum "poetry.lock" }}'
namespace: tox
path: {{ .Environment.CIRCLE_WORKING_DIRECTORY }}/.tox
steps:
- run:
name: "install tox"
command: |
poetry run pip install -U tox
- run:
name: "run tox using sqlalchemy <<parameters.sqlalchemy_version>>.*"
command: |
poetry run tox -e sqlalchemy<<parameters.sqlalchemy_version>>
- utils/send_coverage_to_codecov:
codecov_flag: sqlalchemy<<parameters.sqlalchemy_version>>

Expand Down

0 comments on commit 2e7fa73

Please sign in to comment.