-
Notifications
You must be signed in to change notification settings - Fork 269
40 lines (38 loc) · 1.31 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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