ci: use cache/virtualenv for test dependencies

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-08-23 00:07:40 -07:00
parent 57c0409958
commit fbb3e052fe
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
4 changed files with 10 additions and 6 deletions

View file

@ -4,8 +4,7 @@ set -eou pipefail
# Upgrade PIP; Arch Linux's version of pip is outdated for Poetry.
pip install --upgrade pip
# Install the aurweb package and deps system-wide via poetry.
poetry config virtualenvs.create false
if [ ! -z "${COMPOSE+x}" ]; then
poetry config virtualenvs.create false
fi
poetry install --no-interaction --no-ansi
exec "$@"