Skip to content

Commit ad1f5a1

Browse files
committed
Exclude tensorflow from Python 3.14
1 parent 69deb4c commit ad1f5a1

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ jobs:
4848
run: |
4949
python -m pip install --upgrade pip
5050
pip install -r requirements.txt
51-
pip install tensorflow
52-
pip install --upgrade keras
53-
pip install torch
51+
if [ "${{ matrix.python-version }}" != "3.14" ]; then
52+
pip install tensorflow
53+
pip install --upgrade keras
54+
pip install torch
55+
fi
5456
5557
# Build the PyGAD package distribution (generating .tar.gz and .whl files).
5658
# This ensures the package build process is valid on this Python version.
@@ -72,4 +74,8 @@ jobs:
7274
# This includes our new tests for visualization, operators, parallel processing, etc.
7375
- name: Run Tests
7476
run: |
75-
pytest
77+
if [ "${{ matrix.python-version }}" == "3.14" ]; then
78+
pytest --ignore=tests/test_kerasga.py --ignore=tests/test_torchga.py
79+
else
80+
pytest
81+
fi

0 commit comments

Comments
 (0)