Skip to content

Commit

Permalink
Handle restored ~/virtualenv cache correctly
Browse files Browse the repository at this point in the history
We still need the symlink in ~/.local/bin after restoring the cached
~/virtualenv directory. Also, be more verbose by printing the commands.
  • Loading branch information
cognifloyd committed Mar 23, 2021
1 parent b2b7917 commit 3193858
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ jobs:
sudo apt-get -f -y install libldap2-dev libsasl2-dev libssl-dev libyaml-dev ldap-utils
- name: Install virtualenv
run: |
set -x
# Note: Use the verison of virtualenv pinned in fixed-requirements.txt so we
# only have to update it one place when we change the version
# Note: Use --user to avoid polluting system site-packages (which breaks one of our tests)
Expand All @@ -177,9 +178,9 @@ jobs:
~/virtualenv/bin/pip install --upgrade --force-reinstall $(grep "^virtualenv" fixed-requirements.txt)
# drop the --user install virtualenv to prevent polluting tests
pip freeze --user | xargs pip uninstall -y
mkdir -p ~/.local/bin
ln -s ~/virtualenv/bin/virtualenv ~/.local/bin/virtualenv
fi
mkdir -p ~/.local/bin
ln -s ~/virtualenv/bin/virtualenv ~/.local/bin/virtualenv
which virtualenv
virtualenv --version
- name: Install requirements
Expand Down

0 comments on commit 3193858

Please sign in to comment.