document similarity notebook: Remove unneeded imports, fix set_option call, remove unneeded list construction #252
Workflow file for this run
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: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./ktrain" | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install pip dependencies | |
run: | | |
pip install -U pip wheel | |
pip install -e . | |
pip install https://github.com/amaiya/stellargraph/archive/refs/heads/no_tf_dep_082.zip | |
pip install https://github.com/amaiya/eli5-tf/archive/refs/heads/master.zip | |
pip install ipython | |
pip install tensorflow_cpu==2.15.1 | |
pip install tf_keras | |
pip install jinja2==3.0.3 # eli5 dep issue | |
pip install https://github.com/amaiya/eli5-tf/archive/refs/heads/master.zip | |
- name: Show installed pip dependencies | |
run: pip freeze | |
- name: Run tests | |
# tests basic ML pipeline using latest TensorFlow | |
# full integration tests on real datasets are run offline prior to releases | |
run: | | |
python3 ./tests/test_dataloading.py | |
python3 ./tests/test_basic.py |