Skip to content

Commit

Permalink
pull-packages: pip fix, add to CI (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored Feb 9, 2023
1 parent f8cfc0d commit b9365e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
# Don't build pyopencl as that is difficult
cat myreq.txt | sed /pyopencl/d > req.txt
pip install -r req.txt
- name: Run update
run: |
./pull-packages.sh -x
- name: Reinstall emirge env with new requirements.txt
run: |
./install.sh --env-name=reinstall_env --pip-pkgs=req.txt
Expand Down
4 changes: 2 additions & 2 deletions pull-packages.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -o nounset -o errexit
set -o nounset -o errexit -o pipefail

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

Expand Down Expand Up @@ -69,7 +69,7 @@ echo "==== Updating pip packages."
conda_pypi=$(conda list | awk '/pypi/ {print $1}')

# Names of outdated packages according to pip
pip_outdated=$(pip list --local --outdated | tail +3 | awk '{print $1}')
pip_outdated=$(pip list --local --outdated | tail -n +3 | awk '{print $1}')

# For each outdated package, make sure it was actually installed by pip
# before updating it.
Expand Down

0 comments on commit b9365e6

Please sign in to comment.