forked from adriangb/scikeras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support TF 2.12, drop Python 3.7 (adriangb#302)
- Loading branch information
Showing
28 changed files
with
129 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,12 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
|
||
TestStable: | ||
name: Ubuntu / Python ${{ matrix.python-version }} / TensorFlow Stable / Scikit-Learn Stable | ||
name: Ubuntu / Python ${{ matrix.python-version }} / TensorFlow ${{ matrix.tensorflow-version }} / Scikit-Learn Stable | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
tensorflow-version: ["2.11", "2.12"] | ||
fail-fast: false | ||
|
||
steps: | ||
|
@@ -52,7 +53,8 @@ jobs: | |
- name: Install Dependencies | ||
run: | | ||
poetry install -E tensorflow | ||
poetry install | ||
poetry run python -m pip install -U "tensorflow~=${{ matrix.tensorflow-version }}" | ||
- name: Test with pytest | ||
run: | | ||
|
@@ -97,6 +99,7 @@ jobs: | |
- name: Test with pytest | ||
if: always() | ||
continue-on-error: true | ||
run: | | ||
poetry run python -m pip freeze | ||
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes | ||
|
@@ -145,8 +148,9 @@ jobs: | |
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
matrix: | ||
os: [MacOS, Windows] # test all OSs (except Ubuntu, which is already running other tests) | ||
python-version: ["3.7", "3.10"] # test only the two extremes of supported Python versions | ||
os: [MacOS, Windows] # test all OSs except Ubuntu, which is already running other tests | ||
python-version: ["3.8", "3.11"] # test only the two extremes of supported Python versions | ||
tensorflow-version: ["2.11", "2.12"] # test only the two extremes of supported TF versions | ||
fail-fast: false | ||
|
||
steps: | ||
|
@@ -166,12 +170,12 @@ jobs: | |
- name: Install Dependencies | ||
# TF is sorta dropping support for Windows | ||
# At the very least they are no longer suppporting GPU | ||
# See https://github.com/tensorflow/tensorflow/releases/tag/v2.11.0 | ||
# See https://github.com/tensorflow/tensorflow/releases/tag/v2.12.0 | ||
# and | ||
# https://www.tensorflow.org/install/pip#windows-native | ||
run: | | ||
poetry install | ||
poetry run pip install -U tensorflow-cpu | ||
poetry run python -m pip install -U "tensorflow~=${{ matrix.tensorflow-version }}" | ||
- name: Test with pytest | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: "23.3.0" | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.10.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.272 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
exclude: ^.*/?setup\.py$ | ||
- id: ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.