Skip to content

No support for numpy 2 yet #494

No support for numpy 2 yet

No support for numpy 2 yet #494

Workflow file for this run

# Copyright 2021 The GPflux Contributors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Tests
on: [push]
jobs:
check-and-test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
tensorflow: ["~=2.5.0", "~=2.6.0", "~=2.7.0", "~=2.8.0", "~=2.9.0", "~=2.10.0", "~=2.11.0", "~=2.12.0", "~=2.13.0", "~=2.14.0", "~=2.15.0", "~=2.16.0"]
include:
- tensorflow: "~=2.5.0"
keras: "~=2.6.0"
tensorflow-probability: "~=0.13.0"
- tensorflow: "~=2.6.0"
keras: "~=2.6.0"
tensorflow-probability: "~=0.14.0"
- tensorflow: "~=2.7.0"
keras: "~=2.7.0"
tensorflow-probability: "~=0.15.0"
- tensorflow: "~=2.8.0"
keras: "~=2.8.0"
tensorflow-probability: "~=0.16.0"
- tensorflow: "~=2.9.0"
keras: "~=2.9.0"
tensorflow-probability: "~=0.17.0"
- tensorflow: "~=2.10.0"
keras: "~=2.10.0"
tensorflow-probability: "~=0.18.0"
- tensorflow: "~=2.11.0"
keras: "~=2.11.0"
tensorflow-probability: "~=0.19.0"
- tensorflow: "~=2.12.0"
keras: "~=2.12.0"
tensorflow-probability: "~=0.20.0"
- tensorflow: "~=2.13.0"
keras: "~=2.13.0"
tensorflow-probability: "~=0.21.0"
- tensorflow: "~=2.14.0"
keras: "~=2.14.0"
tensorflow-probability: "~=0.22.0"
- tensorflow: "~=2.15.0"
keras: "~=2.15.0"
tensorflow-probability: "~=0.23.0"
- tensorflow: "~=2.16.0"
tensorflow-probability: "~=0.24.0"
exclude:
# These older versions of TensorFlow don't work with Python 3.10:
- python-version: "3.10"
tensorflow: "~=2.5.0"
- python-version: "3.10"
tensorflow: "~=2.6.0"
- python-version: "3.10"
tensorflow: "~=2.7.0"
# These newer versions of TensorFlow don't work with Python 3.7:
- python-version: "3.7"
tensorflow: "~=2.12.0"
- python-version: "3.7"
tensorflow: "~=2.13.0"
- python-version: "3.7"
tensorflow: "~=2.14.0"
- python-version: "3.7"
tensorflow: "~=2.15.0"
- python-version: "3.7"
tensorflow: "~=2.16.0"
# These newer versions of TensorFlow don't work with Python 3.8:
- python-version: "3.8"
tensorflow: "~=2.14.0"
- python-version: "3.8"
tensorflow: "~=2.15.0"
- python-version: "3.8"
tensorflow: "~=2.16.0"
name: Python-${{ matrix.python-version }} tensorflow${{ matrix.tensorflow }}
env:
VERSION_TF: ${{ matrix.tensorflow }}
VERSION_KERAS: ${{ matrix.keras }}
VERSION_TFP: ${{ matrix.tensorflow-probability }}
VERSION_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('notebook_requirements.txt') }}-${{ hashFiles('tests_requirements.txt') }}
- name: Install dependencies
run: make install
- name: Run checks
run: make check
- name: Run tests
run: make test