Skip to content

Bump black from 19.10b0 to 24.3.0 #198

Bump black from 19.10b0 to 24.3.0

Bump black from 19.10b0 to 24.3.0 #198

Workflow file for this run

# 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
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Update pip
run: python -m pip install --upgrade pip
- name: Cache dependencies
id: cache
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-3.7-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-2.2.0
- name: Install dependencies
run: pip install -r requirements-dev.txt && pip install tensorflow==2.2.0 && pip install tensorflow_addons==0.10.0
- name: Lint with pylint and black
run: make lint
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
tensorflow-version: [2.1.0, 2.2.0]
tf-addons-version: [0.9.1, 0.10.0]
exclude:
# tf-addons 0.10.0 requires tensorflow>=2.2.0
- tensorflow-version: 2.1.0
tf-addons-version: 0.10.0
# tf-addons 0.9.1 is incompatible with tensorflow==2.2.0
- tensorflow-version: 2.2.0
tf-addons-version: 0.9.1
# Python 3.8 requires tf-addons>=0.10.0
- python-version: 3.8
tf-addons-version: 0.9.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Cache dependencies
id: cache
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements-dev.txt') }}-${{ matrix.tensorflow-version }}-${{ matrix.tf-addons-version }}
- name: Install dependencies
run: pip install -r requirements-dev.txt && pip install tensorflow==${{ matrix.tensorflow-version }} && pip install tensorflow_addons==${{ matrix.tf-addons-version }}
- name: Test with pytest
run: make test