Skip to content

Commit

Permalink
pip-run-tests.command is now a python module
Browse files Browse the repository at this point in the history
No longer a shell command.

This works around CircleCI-Public/cimg-python#220
  • Loading branch information
cjw296 committed Nov 20, 2023
1 parent 9421a86 commit 1949ef2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@ commands:
type: string
default: ""
steps:
- run:
name: "Add .local/bin to $PATH"
command: |
echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV
source $HOME/.bashrc
- run:
name: "Install Project"
command: "<< parameters.python >> -m pip install --user << parameters.extra_packages >> <<# parameters.editable >>-e <</ parameters.editable >><< parameters.package >><< parameters.extras >>"
command: "<< parameters.python >> -m pip install << parameters.extra_packages >> <<# parameters.editable >>-e <</ parameters.editable >><< parameters.package >><< parameters.extras >>"

pip-run-tests:
parameters:
Expand Down Expand Up @@ -77,7 +72,7 @@ commands:
- steps: << parameters.prepare >>
- run-with-coverage:
python: << parameters.python >>
command: << parameters.command >>
command: "<< parameters.python >> -m << parameters.command >>"

poetry-run-tests:
parameters:
Expand Down

0 comments on commit 1949ef2

Please sign in to comment.