Skip to content

Commit 05f2970

Browse files
committed
workflows: switch setuptools job to Ubuntu 20.04 container
GitHub is deprecating the ubuntu-20.04 image: https://github.blog/changelog/2025-01-15-github-actions-ubuntu-20-runner-image-brownout-dates-and-other-breaking-changes/ Move repo checkout after dependency installation so it can use Git. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 88af74a commit 05f2970

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)