Skip to content

Instantly share code, notes, and snippets.

@jsalbert
Created March 24, 2021 07:47
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/b62cf91d729d86bb9cebd2b5cd9fa397 to your computer and use it in GitHub Desktop.
Save jsalbert/b62cf91d729d86bb9cebd2b5cd9fa397 to your computer and use it in GitHub Desktop.
Circle Ci Parallelism Flag
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
TESTFILES=$(circleci tests glob tests/**/test*.py | circleci tests split --split-by=timings)
pytest $TESTFILES
no_output_timeout: 1h
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