Skip to content

Commit

Permalink
Only run 2and3 tests on platforms that have Python 2 and 3.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nuclearsandwich committed Nov 13, 2024
1 parent 1c52e88 commit 5ce765f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ jobs:
run: |
earthly --ci +test-pypi-install --OS=${{matrix.os}}
- name: Run 2and3 tests
# This test can only be run on platforms that have Python 2 and Python 3 packages.
if: ${{contains(["ubuntu:focal", "debian:bullseye", "ubuntu:jammy"], matrix.os)}}
run: |
earthly --ci +test-2and3 --OS=${{matrix.os}}

0 comments on commit 5ce765f

Please sign in to comment.