Last active
October 8, 2020 16:29
-
-
Save abn/ccf3eabe72d8c54a5373f6052cfab72e to your computer and use it in GitHub Desktop.
Python Poetry: Run Pull Request Container
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
PULL_ID=3147 | |
PYTHON_VERSION=${PYTHON_VERSION:-3.8} | |
podman run --rm -i --entrypoint bash python:${PYTHON_VERSION} <<EOF | |
set -e | |
python -m pip install -q git+https://github.com/python-poetry/poetry.git@refs/pull/${PULL_ID}/head | |
python -m poetry new foobar | |
pushd foobar | |
sed -i /pytest/d pyproject.toml | |
python -m poetry add pycowsay | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment