Fix poetry install in tests

This commit is contained in:
Gabriel Augendre 2020-12-26 15:20:40 +01:00
parent 17ac650531
commit 6dceeb2427
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -15,14 +15,14 @@ tasks:
- install_poetry: | - install_poetry: |
mkdir $HOME/bin mkdir $HOME/bin
ln -s $(which python3.9) $HOME/bin/python ln -s $(which python3.9) $HOME/bin/python
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python python -m ensurepip
echo "source $HOME/.poetry/env" >> ~/.buildenv python -m pip install poetry==$POETRY_VERSION
- install_deps: | - install_deps: |
cd blog cd blog
poetry install -n python -m poetry install -n
- test: | - test: |
cd blog cd blog
poetry run ./docker/runtests.sh python -m poetry run ./docker/runtests.sh
- check-branch: | - check-branch: |
cd blog cd blog
if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \ if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \