-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow pip dependency resolver to optimize
- Loading branch information
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,8 @@ jobs: | |
timeout-minutes: 180 | ||
strategy: | ||
matrix: | ||
python-version: [ 3.6,3.7,3.8, 3.9,3.10.7 ] | ||
tf-version: [ 2.6.0,2.7.0,2.8.0,2.9.0,2.10.0 ] | ||
python-version: [ 3.6, 3.7, 3.8, 3.9, 3.10.7 ] | ||
tf-version: [ 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.10.0 ] | ||
|
||
exclude: | ||
- python-version: 3.7 | ||
|
@@ -65,7 +65,7 @@ jobs: | |
tf-version: 2.7.0 | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup python environment | ||
uses: actions/setup-python@v4 | ||
|
@@ -74,19 +74,15 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
pip3 install -q tensorflow==${{ matrix.tf-version }} | ||
pip install -q protobuf==3.19.0 | ||
pip install -q requests | ||
pip install -q protobuf==3.19.0 requests tensorflow==${{ matrix.tf-version }} | ||
pip install -e . | ||
- name: Test with pytest | ||
timeout-minutes: 180 | ||
run: | | ||
pip install -q pytest | ||
pip install -q pytest-cov | ||
pip install -q python-coveralls | ||
pip install -q pytest pytest-cov python-coveralls | ||
pytest --cov=deepctr --cov-report=xml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected].0 | ||
uses: codecov/[email protected].4 | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
file: ./coverage.xml | ||
|