Skip to content

Commit 2006a33

Browse files
authored
Create file
1 parent 2ad8103 commit 2006a33

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/ci.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
uses: codecov/[email protected]
53+
with:
54+
token: ${{secrets.CODECOV_TOKEN}}
55+
file: ./coverage.xml
56+
flags: pytest
57+
name: py${{ matrix.python-version }}-tf${{ matrix.tf-version }}

0 commit comments

Comments
 (0)