From e9b9a120a985ca6521166f41276337364b3e7a83 Mon Sep 17 00:00:00 2001 From: Marc O'Morain Date: Wed, 25 Sep 2019 15:58:26 +0100 Subject: [PATCH] pip3 is already installed in the image Remove calls to apt-get to install pip, it's already present in the image. Also use `environment` blocks to speciy env vars. --- .circleci/config.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cf7dddb..205bed3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,12 +4,12 @@ jobs: lint: docker: - image: circleci/python:3 + environment: + LC_ALL: C.UTF-8 steps: - checkout - - run: sudo apt update - - run: sudo apt install -y python3-pip - run: pip3 install -U black flake8 --user - - run: LC_ALL=C.UTF-8 black --check . + - run: black --check . - run: flake8 . build: working_directory: ~/work @@ -17,15 +17,18 @@ jobs: - image: circleci/python:3 steps: - run: sudo apt update - - run: sudo apt install -y python3-pip stress + - run: sudo apt install -y stress - run: pip3 install -U pytest pytest-cov --user - checkout # install - run: pip3 install . --user # There is no actual test - - run: cd test/ && MPLBACKEND=Agg pytest --maxfail=1 --cov stressberry + - run: + command: pytest --maxfail=1 --cov stressberry + working_directory: test + environment: + MPLBACKEND: Agg # submit to codecov - - run: sudo apt install -y curl - run: bash <(curl -s https://codecov.io/bash) workflows: