Browse Source

🚧 modification du fichier de config

dependabot/pip/requirements/sqlalchemy-1.3.0
Youssef Touggani 6 years ago
parent
commit
a80d4f7cbf
  1. 36
      .circleci/config.yml

36
.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:
version: 2
tp:
jobs:
- build-and-test
- build
Loading…
Cancel
Save