File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ path :
6+ - ' deepctr/*'
7+ - ' tests/*'
8+ pull_request :
9+ path :
10+ - ' deepctr/*'
11+ - ' tests/*'
12+
13+ jobs :
14+ build :
15+
16+ runs-on : ubuntu-latest
17+ strategy :
18+ matrix :
19+ python-version : [3.5,3.6,3.7]#
20+ tf-version : [1.4.0,1.12.0,1.14.0,2.0.0rc0]
21+
22+ exclude :
23+ - python-version : 3.7
24+ tf-version : 1.4.0
25+
26+ - python-version : 3.7
27+ tf-version : 1.12.0
28+
29+ # - python-version: 2.7
30+ # tf-version: 2.0.0rc0
31+
32+ steps :
33+ - uses : actions/checkout@v1
34+
35+ - name : Setup python environment
36+ uses : actions/setup-python@v1
37+ with :
38+ python-version : ${{ matrix.python-version }}
39+
40+ - name : Install dependencies
41+ run : |
42+ pip3 install -q tensorflow==${{ matrix.tf-version }}
43+ pip install -q requests
44+ pip install -e .
45+ - name : Test with pytest
46+ run : |
47+ pip install -q pytest
48+ pip install -q pytest-cov
49+ pip install -q python-coveralls
50+ pytest --cov=deepctr --cov-report=xml
51+ - name : Upload coverage to Codecov
52+ 53+ with :
54+ token : ${{secrets.CODECOV_TOKEN}}
55+ file : ./coverage.xml
56+ flags : pytest
57+ name : py${{ matrix.python-version }}-tf${{ matrix.tf-version }}
You can’t perform that action at this time.
0 commit comments