Skip to content

Release v0.88

Release v0.88 #1

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package for py37
on:
push:
branches: [ master ]
pull_request:
env:
TF_KERAS_VIS_MAX_STEPS: 3
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8']
tensorflow: ['2.0.0', '2.1.0', '2.2.0', '2.3.0', '2.4.0', '2.5.0']
include:

Check failure on line 22 in .github/workflows/python-package-TF2.5.yml

View workflow run for this annotation

GitHub Actions / Python package for py37

Invalid workflow file

The workflow is not valid. .github/workflows/python-package-TF2.5.yml (Line: 22, Col: 7): Unexpected value 'include' .github/workflows/python-package-TF2.5.yml (Line: 25, Col: 7): Unexpected value 'exclude'
- python-version: '3.9'
tensorflow: '2.5.0'
exclude:
- python-version: '3.8'
tensorflow: '2.0.0'
- python-version: '3.8'
tensorflow: '2.1.0'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install --upgrade -e .[develop,examples,numpy1x,protobuf3] tensorflow~=${{ matrix.tensorflow }}
- name: Test with pytest
run: |
pytest -n auto --dist loadscope
timeout-minutes: 60
- name: Test attentions.ipynb
run: |
jupyter-nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute examples/attentions.ipynb
- name: Test visualize_dense_layer.ipynb
run: |
jupyter-nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute examples/visualize_dense_layer.ipynb
- name: Test visualize_conv_filters.ipynb
run: |
jupyter-nbconvert --ExecutePreprocessor.timeout=600 --to notebook --execute examples/visualize_conv_filters.ipynb