Created
March 24, 2021 07:47
-
-
Save jsalbert/b62cf91d729d86bb9cebd2b5cd9fa397 to your computer and use it in GitHub Desktop.
Circle Ci Parallelism Flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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