Skip to content

Commit

Permalink
Increase Python versions for GitHub actions (#661)
Browse files Browse the repository at this point in the history
* Increase python versions

* Update versions of dependencies
  • Loading branch information
zimmerrol committed Feb 1, 2022
1 parent e7d3aa9 commit c280e29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 20
matrix:
python-version: [3.6, 3.7]
python-version: ['3.8', '3.9']
backend: ["none", "pytorch", "tensorflow", "jax", "numpy"]

steps:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
return 1
}
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade pip setuptools wheel
retry-with-backoff pip install -r requirements.txt
- name: flake8
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ developed in PyTorch, TensorFlow and JAX, all with one code base without code du
pip install foolbox
Foolbox requires Python 3.6 or newer. To use it with `PyTorch <https://pytorch.org>`_, `TensorFlow <https://www.tensorflow.org>`_, or `JAX <https://github.com/google/jax>`_, the respective framework needs to be installed separately. These frameworks are not declared as dependencies because not everyone wants to use and thus install all of them and because some of these packages have different builds for different architectures and CUDA versions. Besides that, all essential dependencies are automatically installed.
Foolbox is tested with Python 3.9 and newer - however, it will most likely also work with version 3.6 - 3.8. To use it with `PyTorch <https://pytorch.org>`_, `TensorFlow <https://www.tensorflow.org>`_, or `JAX <https://github.com/google/jax>`_, the respective framework needs to be installed separately. These frameworks are not declared as dependencies because not everyone wants to use and thus install all of them and because some of these packages have different builds for different architectures and CUDA versions. Besides that, all essential dependencies are automatically installed.

You can see the versions we currently use for testing in the `Compatibility section <#-compatibility>`_ below, but newer versions are in general expected to work.

Expand Down
6 changes: 3 additions & 3 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ torch==1.10.1
torchvision==0.11.2
jax[cpu]==0.2.17
tensorflow==2.6.2
numba==0.50.1
matplotlib==3.2.1
pillow==8.1.1
numba==0.55.1
matplotlib==3.5.1
pillow==9.0.0
tensorboardX==2.0
responses==0.10.9

0 comments on commit c280e29

Please sign in to comment.