Skip to content

Commit d07f3bd

Browse files
committed
Don't try to compare version strings as strings
1 parent e1a8fb5 commit d07f3bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test-with-pip.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Install dependencies and local packages (not macOS)
2424
run: python -m pip install .[gui,h5,preferences]
25-
if: matrix.os != 'macos-latest' || ${{ matrix.python-version }} >= '3.10'
25+
if: matrix.os != 'macos-latest' || (${{ matrix.python-version }} != '3.8' && ${{ matrix.python-version }} != '3.9')
2626
- name: Install dependencies and local packages (macOS)
2727
run: python -m pip install .[gui,preferences]
28-
# PyTables won't build on Apple Silicon for Python >= 3.10, so exclude
29-
# the h5 dep
28+
# PyTables won't build on Apple Silicon for Python < 3.10, so exclude
29+
# the h5 dependency.
3030
# xref: enthought/apptools/issues/344
31-
if: matrix.os == 'macos-latest' && ${{ matrix.python-version }} < '3.10'
31+
if: matrix.os == 'macos-latest' && (${{ matrix.python-version }} == '3.8' || ${{ matrix.python-version }} == '3.9')
3232
- name: Run tests
3333
run: |
3434
mkdir testdir

0 commit comments

Comments
 (0)