diff --git a/.circleci/config.yml b/.circleci/config.yml index 12a4918..495cbfb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,21 +1,29 @@ -version: 2.1 - -orbs: - python: circleci/python@0.2.1 - +version: 2 jobs: - build-and-test: - executor: python/default + build: + docker: + - image: circleci/python:3.9 steps: - checkout - - python/load-cache - - python/install-deps - - python/save-cache + - restore_cache: + key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} - run: - command: ./manage.py test - name: Test + name: Dépendances python + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements/dev.txt + -save_cache: + key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} + paths: + - "venv" + - save_cache: + key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} + paths: + - "venv" -workflows: - main: + workflows: + version: 2 + tp: jobs: - - build-and-test + - build \ No newline at end of file