Skip to content

Commit 5ce765f

Browse files
Only run 2and3 tests on platforms that have Python 2 and 3.
With the addition of #203, a missing Python 2 binary will raise an error instead of assuming that the binary is called `python`. As a result, this test script now fails on platforms where no Python 2 installation is available.
1 parent 1c52e88 commit 5ce765f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ jobs:
4242
run: |
4343
earthly --ci +test-pypi-install --OS=${{matrix.os}}
4444
- name: Run 2and3 tests
45+
# This test can only be run on platforms that have Python 2 and Python 3 packages.
46+
if: ${{contains(["ubuntu:focal", "debian:bullseye", "ubuntu:jammy"], matrix.os)}}
4547
run: |
4648
earthly --ci +test-2and3 --OS=${{matrix.os}}

0 commit comments

Comments
 (0)