version: 2
workflows:
version: 2
master:
jobs:
- Dependencies
- test_rc:
requires:
- Dependencies
- test_sysco:
requires:
- Dependencies
jobs:
Dependencies:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
- store_artifacts:
path: test-reports
destination: test-reports
test_rc:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- run:
name: test rc
command: |
. venv/bin/activate
python -m pytest tests/unit/scrape_scripts/restaurant_cheetah/scraper.py
test_sysco:
docker:
- image: circleci/python:3.6.1
working_directory: ~/repo
steps:
- run:
name: test sysco
command: |
. venv/bin/activate
python -m pytest tests/unit/scrape_scripts/sysco/scraper.py
I’m using above config file to run pytests in parallel. However, I’m getting the following error.
#!/bin/bash -eo pipefail
. venv/bin/activate
python -m pytest tests/unit/scrape_scripts/restaurant_cheetah/scraper.py
/bin/bash: venv/bin/activate: No such file or directory
Exited with code 1
any idea on what’s wrong with my config file ?