Skip to content

Commit

Permalink
.github/ actions: temporary python3-pil installation hack
Browse files Browse the repository at this point in the history
Because the Ubuntu package index is out of date on github
actions/runner-images#1757 (comment)

Should be much faster than apt-update

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and xiulipan committed Jan 25, 2021
1 parent 2fd1c08 commit eb8b635
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

name: Pull Requests

# yamllint disable-line rule:truthy
on:
push:
branches: [master]
Expand All @@ -34,6 +35,10 @@ jobs:
# :-( https://github.community/t/support-for-yaml-anchors/16128
- {uses: actions/checkout@v2, with: {fetch-depth: 0}}
- uses: actions/setup-python@v2
- name: temporary python3-pil HACK because github is out of date
run: sudo apt-get -y install libimagequant0 libwebpdemux2 &&
wget http://security.ubuntu.com/ubuntu/ubuntu/pool/main/p/pillow/python3-pil_7.0.0-4ubuntu0.2_amd64.deb &&
sudo dpkg -i python3-pil_*.deb
- name: get python libs
# FIXME: apt-get succeeds but 'import numpy' still fails!?
run: sudo apt-get -y install python3-numpy python3-scipy pylint
Expand Down

0 comments on commit eb8b635

Please sign in to comment.