Skip to content

Test TF Nightly

Test TF Nightly #62

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@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -e ".[tests]" --progress-bar off
pip uninstall keras -y
pip uninstall tensorflow -y
pip install tf-nightly --progress-bar off --upgrade
- name: Test with pytest
run: |
pytest --cov=autokeras --cov-report xml:coverage.xml
- name: Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
file: ./coverage.xml #optional