Skip to content

Commit

Permalink
Problem: CircleCI missing builds with just Python
Browse files Browse the repository at this point in the history
Solution: Add builds that install python packages and run tests
  • Loading branch information
gotcha committed Mar 15, 2021
1 parent 1de6836 commit e1bb5c7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
version: 2.1

commands:

jobs:
test:
parameters:
Expand All @@ -16,6 +19,26 @@ jobs:
- run:
command: ./ci_build.sh

install-python-and-test:
parameters:
python-version:
type: string
machine:
image: ubuntu-2004:202101-01
environment:
BUILD_TYPE: bare_machines
PYTHON_VER: << parameters.python-version >>
steps:
- run:
command: sudo add-apt-repository ppa:deadsnakes/ppa
- run:
command: sudo apt-get update
- run:
command: sudo apt install -y build-essential python${PYTHON_VER}-dev
- checkout
- run:
command: ./ci_build.sh

workflows:
tests-containers:
jobs:
Expand All @@ -31,4 +54,10 @@ workflows:
parameters:
python-version: ["3.8"]
build-type: ["debian_sys_container"]
tests-ubuntu-machines:
jobs:
- install-python-and-test:
matrix:
parameters:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9"]

4 changes: 2 additions & 2 deletions builds/bare_machines/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ cd ../..

# Travis Python comes with preinstalled six
# which breaks test suite
pip uninstall -y six || true
python dev.py
pip${PYTHON_VER} uninstall -y six || true
python${PYTHON_VER} dev.py
bin/test -c -vvv

0 comments on commit e1bb5c7

Please sign in to comment.