Skip to content

Commit

Permalink
pip3 is already installed in the image
Browse files Browse the repository at this point in the history
Remove calls to apt-get to install pip, it's already present in the
image. Also use `environment` blocks to speciy env vars.
  • Loading branch information
marcomorain committed Sep 25, 2019
1 parent df0e425 commit e9b9a12
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ 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
docker:
- 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:
Expand Down

0 comments on commit e9b9a12

Please sign in to comment.