Use Any instead of KerasTensor type in inference module because mypy … #367
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
name: ci | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [ "3.9", "3.10", "3.11" ] | |
backend: [ tensorflow, jax ] | |
include: | |
- backend: tensorflow | |
packages: tensorflow | |
- backend: jax | |
packages: tensorflow jax[cpu] | |
name: python-${{ matrix.python }}-${{ matrix.backend }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
- name: Setup python-${{ matrix.python }}-${{ matrix.backend }} | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install tools | |
run: | | |
python3 -m pip install pylint | |
python3 -m pip install mypy | |
python3 -m pip install ${{ matrix.packages }} | |
- name: Test | |
run: | | |
./tests/install_from_local_and_test.sh ${{ matrix.backend }} |