Skip to content

Commit

Permalink
Added tf 2.18 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mraveri committed Oct 26, 2024
1 parent e2c632f commit 8227e5c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:

python-version: ["3.9", "3.10", "3.12"]
tensorflow-version: ["2.15.0", "2.16.1", "2.17.0"]
tensorflow-version: ["2.15.0", "2.16.1", "2.17.0", "2.18.0"]
tfp-version: ["0.23.0", "0.24.0"]

exclude:
Expand All @@ -31,6 +31,8 @@ jobs:
tfp-version: "0.23.0"
- tensorflow-version: "2.17.0"
tfp-version: "0.23.0"
- tensorflow-version: "2.18.0"
tfp-version: "0.23.0"

steps:

Expand All @@ -46,6 +48,7 @@ jobs:
python -m pip install --upgrade pip
pip install tensorflow==${{ matrix.tensorflow-version }}
pip install tensorflow-probability==${{ matrix.tfp-version }}
# Install tf-keras for tensorflow 2.16.1
if [ "${{ matrix.tensorflow-version }}" == "2.16.1" ]; then
pip install tf-keras
Expand All @@ -54,6 +57,11 @@ jobs:
if [ "${{ matrix.tensorflow-version }}" == "2.17.0" ]; then
pip install tf-keras
fi
# Install tf-keras for tensorflow 2.18.0
if [ "${{ matrix.tensorflow-version }}" == "2.17.0" ]; then
pip install tf-keras
fi
pip install coveralls
pip install -r requirements.txt
Expand All @@ -75,6 +83,9 @@ jobs:
if [ "${{ matrix.tensorflow-version }}" == "2.17.0" ]; then
export TF_USE_LEGACY_KERAS=1
fi
if [ "${{ matrix.tensorflow-version }}" == "2.18.0" ]; then
export TF_USE_LEGACY_KERAS=1
fi
make test_with_coverage
- name: Upload coverage to coveralls
Expand Down

0 comments on commit 8227e5c

Please sign in to comment.