Skip to content

Instantly share code, notes, and snippets.

@jsalbert
Created March 24, 2021 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsalbert/df9dc5359ff56a48a99b2f606c856193 to your computer and use it in GitHub Desktop.
Save jsalbert/df9dc5359ff56a48a99b2f606c856193 to your computer and use it in GitHub Desktop.
Circle CI Parallel Configuration
version: 2
jobs:
test:
docker:
- image: python:3.7
parallelism: 4
steps:
- run:
name: Run tests
parallel: true
command: |
pip install virtualenv
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp -f .circleci/resources/pytest_build_config.ini pytest.ini
shopt -s globstar
TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings)
mkdir -p test-results
shopt -u globstar
pytest --junitxml=test-results/junit.xml $TESTFILES
no_output_timeout: 1h
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
workflows:
version: 2
test_package:
jobs:
- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment