Skip to content

Test TF Nightly

Test TF Nightly #862

Workflow file for this run

name: Test TF Nightly
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]
pull_request:
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
pip install -e ".[tests]" --progress-bar off
pip uninstall keras-tuner -y
pip install git+https://github.com/keras-team/keras-tuner.git@master
pip uninstall keras tensorflow tensorflow-text tensorflow-datasets -y
pip install tf-nightly tensorflow-text-nightly tfds-nightly --progress-bar off --upgrade
- name: Test with pytest
run: |
pytest