Skip to content

Commit f670cb5

Browse files
authored
Merge pull request #314 from bgilbert/ubuntu-20.04
workflows: switch setuptools job to Ubuntu 20.04 container
2 parents 88af74a + 05f2970 commit f670cb5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/python.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,21 +234,23 @@ jobs:
234234
setuptools:
235235
name: Setuptools install
236236
needs: pre-commit
237-
runs-on: ubuntu-20.04
237+
runs-on: ubuntu-latest
238+
container: ubuntu:20.04
238239
steps:
239-
- name: Check out repo
240-
uses: actions/checkout@v4
241240
- name: Install dependencies
242241
run: |
243-
sudo apt-get update
244-
sudo apt-get install -y libopenslide0 python3-pil
242+
apt-get update
243+
DEBIAN_FRONTEND=noninteractive apt-get install -y \
244+
git libopenslide0 python3-jinja2 python3-pil python3-pip
245245
pip install pytest
246+
- name: Check out repo
247+
uses: actions/checkout@v4
246248
- name: Install OpenSlide Python
247-
run: sudo python setup.py install
249+
run: python3 setup.py install
248250
- name: Run tests
249251
run: pytest -v
250252
- name: Tile slide
251-
run: python examples/deepzoom/deepzoom_tile.py --viewer -o tiled tests/fixtures/small.svs
253+
run: python3 examples/deepzoom/deepzoom_tile.py --viewer -o tiled tests/fixtures/small.svs
252254

253255
docs:
254256
name: Docs

0 commit comments

Comments
 (0)