Skip to content

Commit 18698b0

Browse files
Add TensorFlow versions 2.5 and 2.6 in CI (#175)
* Add TF2.5 2.6 in CI * Fix standalone keras for tf >= 2.6
1 parent d32ea1d commit 18698b0

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

.github/workflows/ci.yml

+31-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
strategy:
4242
matrix:
4343
python-version: [3.6, 3.7, 3.8]
44-
tensorflow-version: [2.1.0, 2.2.0, 2.3.0, 2.4.0]
44+
tensorflow-version: [2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0]
4545
exclude:
4646
- tensorflow-version: 2.1.0
4747
python-version: 3.8
@@ -64,3 +64,33 @@ jobs:
6464
run: pip install -e ".[tests]" && pip install opencv-python && pip install tensorflow==${{ matrix.tensorflow-version }}
6565
- name: Test with pytest
6666
run: make test
67+
68+
tests-with-standalone-keras:
69+
70+
runs-on: ubuntu-latest
71+
strategy:
72+
matrix:
73+
python-version: [3.6, 3.7, 3.8]
74+
tensorflow-version: [2.6.0]
75+
keras-version: [2.6.0]
76+
77+
steps:
78+
- uses: actions/checkout@v2
79+
- name: Set up Python ${{ matrix.python-version }}
80+
uses: actions/setup-python@v1
81+
with:
82+
python-version: ${{ matrix.python-version }}
83+
- name: Update pip
84+
run: python -m pip install --upgrade pip
85+
- name: Cache dependencies
86+
id: cache
87+
uses: actions/cache@v1
88+
with:
89+
path: ~/.cache/pip
90+
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ matrix.tensorflow-version }}-${{ matrix.keras-version }}
91+
- name: Install dependencies
92+
run: pip install -e ".[tests]" && pip install opencv-python
93+
- name: Install TensorFlow and Keras
94+
run: pip install tensorflow==${{ matrix.tensorflow-version}} keras==${{ matrix.keras-version }}
95+
- name: Test with pytest
96+
run: make test

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# tf-explain
22

33
[![Pypi Version](https://img.shields.io/pypi/v/tf-explain.svg)](https://pypi.org/project/tf-explain/)
4-
[![Build Status](https://api.travis-ci.org/sicara/tf-explain.svg?branch=master)](https://travis-ci.org/sicara/tf-explain)
4+
[![Build Status](https://github.com/sicara/tf-explain/actions/workflows/ci.yml/badge.svg)](https://github.com/sicara/tf-explain/actions)
55
[![Documentation Status](https://readthedocs.org/projects/tf-explain/badge/?version=latest)](https://tf-explain.readthedocs.io/en/latest/?badge=latest)
66
![Python Versions](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-%23EBBD68.svg)
77
![Tensorflow Versions](https://img.shields.io/badge/tensorflow-2.x-blue.svg)
@@ -17,7 +17,7 @@ __Documentation__: https://tf-explain.readthedocs.io
1717
__tf-explain__ is available on PyPi as an alpha release. To install it:
1818

1919
```bash
20-
virtualenv venv -p python3.6
20+
virtualenv venv -p python3.8
2121
pip install tf-explain
2222
```
2323

@@ -26,7 +26,7 @@ to let you choose between full and standalone-CPU versions. Additionally to the
2626

2727
```bash
2828
# For CPU or GPU
29-
pip install tensorflow==2.2.0
29+
pip install tensorflow==2.6.0
3030
```
3131
Opencv is also a dependency. To install it, run:
3232
```bash
@@ -281,7 +281,7 @@ model.fit(x_train, y_train, batch_size=2, epochs=2, callbacks=callbacks)
281281
- [ ] Additional Methods
282282
- [ ] [GradCAM++](https://arxiv.org/abs/1710.11063)
283283
- [x] [Integrated Gradients](https://arxiv.org/abs/1703.01365)
284-
- [ ] [Guided SmoothGrad](https://arxiv.org/abs/1706.03825)
284+
- [x] [Guided SmoothGrad](https://arxiv.org/abs/1706.03825)
285285
- [ ] [LRP](https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0130140)
286286
- [ ] Auto-generated API Documentation & Documentation Testing
287287

0 commit comments

Comments
 (0)