diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 34d6170..2771c0e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -14,8 +14,11 @@ permissions: jobs: build: + strategy: + matrix: + platform: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 @@ -35,4 +38,4 @@ jobs: # stop the build if there are Python syntax errors or undefined names poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file diff --git a/keras_mdn_layer/__init__.py b/keras_mdn_layer/__init__.py index 95e87e8..fc0ac75 100644 --- a/keras_mdn_layer/__init__.py +++ b/keras_mdn_layer/__init__.py @@ -8,6 +8,7 @@ Provided under MIT License """ + import os;os.environ["TF_USE_LEGACY_KERAS"]="1" from tensorflow import keras from tensorflow.keras import backend as K diff --git a/poetry.lock b/poetry.lock index dcdb134..7a21a83 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3675,4 +3675,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "3.11.*" -content-hash = "bae307fb5fa531a32c695e116ccef0e136dd7fdd2ee0fbfb896d74e24d537ea6" +content-hash = "bae307fb5fa531a32c695e116ccef0e136dd7fdd2ee0fbfb896d74e24d537ea6" \ No newline at end of file