Skip to content

Commit

Permalink
Merge pull request #41 from marcomorain/faster-build
Browse files Browse the repository at this point in the history
pip3 is already installed in the image
  • Loading branch information
nschloe authored Sep 25, 2019
2 parents df0e425 + e9b9a12 commit 4106766
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 4106766

Please sign in to comment.