Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Steps to reproduce the behavior:
4. See error

**Operating environment(运行环境):**
- python version [e.g. 3.6, 3.7]
- torch version [e.g. 1.9.0, 1.10.0]
- deepctr-torch version [e.g. 0.2.9,]
- python version [e.g. 3.10]
- pytorch/torch version [e.g. 2.5.1]
- deepctr-torch version [e.g. 0.3.0,]

**Additional context**
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ A clear and concise description of what the question is.
Add any other context about the problem here.

**Operating environment(运行环境):**
- python version [e.g. 3.6]
- torch version [e.g. 1.10.0,]
- deepctr-torch version [e.g. 0.2.9,]
- python version [e.g. 3.10]
- pytorch/torch version [e.g. 2.5.1]
- deepctr-torch version [e.g. 0.3.0,]
157 changes: 77 additions & 80 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,87 @@
name: CI

on:
on:
push:
path:
- 'deepctr_torch/*'
- 'tests/*'
paths:
- "deepctr_torch/**"
- "tests/**"
- "examples/**"
- "setup.py"
- ".github/workflows/**"
pull_request:
path:
- 'deepctr_torch/*'
- 'tests/*'

paths:
- "deepctr_torch/**"
- "tests/**"
- "examples/**"
- "setup.py"
- ".github/workflows/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 120
runs-on: ubuntu-22.04
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
python-version: [3.6,3.7,3.8,3.9,3.10.7]
torch-version: [1.2.0,1.3.0,1.4.0,1.5.0,1.6.0,1.7.1,1.8.1,1.9.0,1.10.2,1.11.0,1.12.1]

exclude:
- python-version: 3.6
torch-version: 1.11.0
- python-version: 3.6
torch-version: 1.12.1
- python-version: 3.8
torch-version: 1.2.0
- python-version: 3.8
torch-version: 1.3.0
- python-version: 3.9
torch-version: 1.2.0
- python-version: 3.9
torch-version: 1.3.0
- python-version: 3.9
torch-version: 1.4.0
- python-version: 3.9
torch-version: 1.5.0
- python-version: 3.9
torch-version: 1.6.0
- python-version: 3.9
torch-version: 1.7.1
- python-version: 3.10.7
torch-version: 1.2.0
- python-version: 3.10.7
torch-version: 1.3.0
- python-version: 3.10.7
torch-version: 1.4.0
- python-version: 3.10.7
torch-version: 1.5.0
- python-version: 3.10.7
torch-version: 1.6.0
- python-version: 3.10.7
torch-version: 1.7.1
- python-version: 3.10.7
torch-version: 1.8.1
- python-version: 3.10.7
torch-version: 1.9.0
- python-version: 3.10.7
torch-version: 1.10.2
include:
# Python 3.7 cannot install torch 2.4/2.5 wheels from official index.
# Keep a legacy torch smoke job to guarantee 3.7 runtime compatibility.
- python-version: "3.7"
torch-version: "1.13.1"
- python-version: "3.8"
torch-version: "2.4.1"
- python-version: "3.9"
torch-version: "2.4.1"
- python-version: "3.9"
torch-version: "2.5.1"
- python-version: "3.10"
torch-version: "2.4.1"
- python-version: "3.10"
torch-version: "2.5.1"
run-examples: "1"
- python-version: "3.11"
torch-version: "2.4.1"
- python-version: "3.11"
torch-version: "2.5.1"
- python-version: "3.12"
torch-version: "2.4.1"
- python-version: "3.12"
torch-version: "2.5.1"

env:
TORCH_VERSION: ${{ matrix.torch-version }}
TORCH_INDEX_URL: https://download.pytorch.org/whl/cpu
RUN_EXAMPLES: ${{ matrix.run-examples || '0' }}

steps:

- uses: actions/checkout@v3

- name: Setup python environment
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v5

- name: Setup python environment
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: bash tests/ci/install.sh

- name: Test with pytest
timeout-minutes: 180
run: bash tests/ci/test.sh

- name: Run examples smoke tests
if: ${{ env.RUN_EXAMPLES == '1' }}
timeout-minutes: 60
run: bash tests/ci/examples.sh

- name: Install dependencies
run: |
pip3 install -q torch==${{ matrix.torch-version }}
pip install -q requests
pip install -e .
- name: Test with pytest
timeout-minutes: 120
run: |
pip install -q pytest
pip install -q pytest-cov
pip install -q python-coveralls
pip install -q sklearn
pytest --cov=deepctr_torch --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.0
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml
flags: pytest
name: py${{ matrix.python-version }}-torch${{ matrix.torch-version }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: pytest
name: py${{ matrix.python-version }}-torch${{ matrix.torch-version }}
15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/source/conf.py

python:
install:
- requirements: docs/requirements.readthedocs.txt

formats: []
4 changes: 2 additions & 2 deletions deepctr_torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from . import models
from .utils import check_version

__version__ = '0.2.9'
check_version(__version__)
__version__ = '0.3.0'
check_version(__version__)
Loading
Loading